Class: GtkAdventCalendar::Command

Inherits:
Object
  • Object
show all
Defined in:
lib/gtk_advent_calendar/command.rb

Class Method Summary collapse

Class Method Details

.runObject



7
8
9
10
11
12
13
14
15
16
# File 'lib/gtk_advent_calendar/command.rb', line 7

def run
  window = Gtk::Window.new
  window.title = "Advent Calendar"
  window.add(Calendar.new)
  window.signal_connect("destroy") do
    Gtk.main_quit
  end
  window.show_all
  Gtk.main
end