Class: LifeGame::MainWindow
- Inherits:
-
Gtk::Window
- Object
- Gtk::Window
- LifeGame::MainWindow
- Defined in:
- lib/kaki-lifegame.rb
Instance Method Summary collapse
-
#initialize ⇒ MainWindow
constructor
A new instance of MainWindow.
Constructor Details
#initialize ⇒ MainWindow
Returns a new instance of MainWindow.
574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 |
# File 'lib/kaki-lifegame.rb', line 574 def initialize super("Life Game") set_resizable(false) field = Field.new field_area = FieldArea.new(field) = SideBar.new(field_area, self) box = Gtk::HBox.new add(box) box.pack_start(field_area, true , true, 0) box.pack_start( , false, true, 0) signal_connect("destroy") {Gtk.main_quit} show_all end |