This repository has been archived on 2021-09-15. You can view files and clone it, but cannot push or open issues or pull requests.
DUT2Curling/v/VueResult.rb
Quentin 03c8e5c2ca modified: README.md
new file:   c/CtrlCheckLinks.rb
	new file:   c/Main.rb
	deleted:    c/main.rb
	new file:   fichier/dir/aa
	modified:   m/ReadFile.rb
	modified:   m/ReadFolder.rb
	modified:   v/Vue1.rb
	deleted:    v/VueError.rb
	new file:   v/VueResult.rb
2014-01-04 11:06:05 +01:00

32 lines
605 B
Ruby

class VueResult
def initialize(liste_result)
@window = Gtk::Window.new
@window.set_title('Resultats')
vb = Gtk::VBox.new(true, 6)
vh = Gtk::HBox.new(false, 6)
if(liste_result != "")
res = Gtk::Label.new(liste_result)
else
res = Gtk::Label.new("Pas de liens trouves")
end
vh.pack_start(res, false, true, 6)
vb.pack_start(vh)
@window.add(vb)
self.listenerDestroy
end
def getWindow
return @window
end
def listenerDestroy
@window.signal_connect('destroy') {
@window.destroy
Gtk.main_quit
}
end
end