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.



11
12
13
# File 'lib/views/main_window.rb', line 11

def initialize
  @view_tab_students = TabStudentsView.new
end

Instance Method Details

#createObject



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

def create
  window('Библиотека', 1000, 600) {
    tab {
      tab_item('Авторы') {
        AuthorListView.new.create
      }
      tab_item('Издатели') {
        PublisherListView.new.create
      }


      # tab_item('Студенты') {
      #   @view_tab_students.create
      # }
    }
  }
end