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.
412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 |
# File 'lib/kaki-lifegame.rb', line 412 def initialize super("Life Game") set_resizable(false) field = Field.new field_area = FieldArea.new(field) = SideBar.new(field_area) box = Gtk::HBox.new add(box) box.pack_start(field_area, true, true, 0) box.pack_start( , true, true, 0) signal_connect("destroy") {Gtk.main_quit} show_all end |