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