Class: MainWindow

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

Instance Method Summary collapse

Constructor Details

#initializeMainWindow

Returns a new instance of MainWindow.



13
14
15
# File 'lib/views/main_window.rb', line 13

def initialize
  @view_tab_students = TabStudentsView.new
end

Instance Method Details

#createObject



17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# File 'lib/views/main_window.rb', line 17

def create
  window('Задания', 1000, 600) {
    tab {
      tab_item('Пользователи') {
        UserListView.new.create
      }
      tab_item('Менеджеры') {
        ManagerListView.new.create
      }
      tab_item('Задания') {
        TaskListView.new.create
      }
    }
  }
end