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.
2014-01-10 11:14:04 +00:00
|
|
|
class VueResult
|
2014-01-10 10:35:05 +00:00
|
|
|
def initialize(liste_result, nom)
|
2014-01-04 10:06:05 +00:00
|
|
|
@window = Gtk::Window.new
|
2014-01-10 10:35:05 +00:00
|
|
|
@window.set_title(nom)
|
2014-01-04 10:06:05 +00:00
|
|
|
|
|
|
|
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
|
2014-01-10 10:35:05 +00:00
|
|
|
|
2014-01-04 10:06:05 +00:00
|
|
|
def listenerDestroy
|
|
|
|
@window.signal_connect('destroy') {
|
|
|
|
@window.destroy
|
|
|
|
Gtk.main_quit
|
|
|
|
}
|
|
|
|
end
|
|
|
|
end
|