Class: MainWindow

Inherits:
Object
  • Object
show all
Includes:
Glimmer
Defined in:
lib/source/views/main_window.rb

Instance Method Summary collapse

Constructor Details

#initializeMainWindow

Returns a new instance of MainWindow.



9
10
11
# File 'lib/source/views/main_window.rb', line 9

def initialize
  @view_tab_students = TabStudents.new
end

Instance Method Details

#createObject



13
14
15
16
17
18
19
20
21
22
23
24
# File 'lib/source/views/main_window.rb', line 13

def create
  window('Универ', 900, 200) {
    tab {
      tab_item('Студенты') {
        @view_tab_students.create
      }

      tab_item('Вкладка 2') { }
      tab_item('Вкладка 3') { }
    }
  }
end