Sha256: 052aaded9976861cdef8a5c61a1bedd53e16b9ccd0c5b04344b566070217df2f

Contents?: true

Size: 588 Bytes

Versions: 2

Compression:

Stored size: 588 Bytes

Contents

# frozen_string_literal: true

require 'mvcStudentXD'
require 'sinatra'
require 'thin'
require 'glimmer-dsl-libui'
require_relative 'tab_students'

class MainWindow
  include Glimmer

  def initialize
    @view_tab_students = TabStudents.new
  end

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

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

main_window = MainWindow.new.create
main_window.show

Version data entries

2 entries across 2 versions & 2 rubygems

Version Path
mc_gem-0.0.1 Lab2/main_window.rb
mvcStudentXD-1.2.1 Lab2/main_window.rb