cours0708/P5B/ruby/exercices/GtkBase.rb
2008-11-25 22:11:16 +01:00

28 lines
394 B
Ruby

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