cours0708/P5B/ruby/exercices/GtkBase.rb

28 lines
394 B
Ruby
Raw Permalink Normal View History

2008-11-25 21:11:16 +00:00
require 'gtk2'
#gtk interface
class Gui
def choice_radio
Gtk.init
window = Gtk::Window.new
window.set_title('lecteur de webradio Gtk')
window.set_default_size(200,100)
window.show_all
Gtk.main
end
def initialize
configuration = Conf.new
@radios = configuration.read
self.choice_radio
print @radios
end
end
Gui.new #launch interface