Class: AideJeuUI
- Inherits:
-
Object
- Object
- AideJeuUI
- Defined in:
- lib/Hashiparmentier/UI/AideJeuUI.rb
Instance Method Summary collapse
-
#initialize ⇒ AideJeuUI
constructor
A new instance of AideJeuUI.
Constructor Details
#initialize ⇒ AideJeuUI
Returns a new instance of AideJeuUI.
5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
# File 'lib/Hashiparmentier/UI/AideJeuUI.rb', line 5 def initialize() @builderAideJeu = Gtk::Builder.new @builderAideJeu.add_from_file("lib/Hashiparmentier/glade/aideJeu.glade") @window = @builderAideJeu.get_object("windowAide") @window.signal_connect('destroy') { || Gtk.main_quit } @window.style_context.add_provider(@@CSS_AIDE, Gtk::StyleProvider::PRIORITY_USER) @btnQuitter = @builderAideJeu.get_object("btnQuitter") @btnQuitter.signal_connect('clicked') { || @window.destroy() } @btnQuitter.style_context.add_provider(@@CSS_BUTTON_ROSE, Gtk::StyleProvider::PRIORITY_USER) @window.show_all() Gtk.main() end |