03c8e5c2ca
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
32 lines
605 B
Ruby
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
|