Class: AstucesUI
- Inherits:
-
Object
- Object
- AstucesUI
- Defined in:
- lib/Hashiparmentier/UI/AstucesUI.rb
Instance Method Summary collapse
-
#initialize ⇒ AstucesUI
constructor
A new instance of AstucesUI.
Constructor Details
#initialize ⇒ AstucesUI
Returns a new instance of AstucesUI.
5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
# File 'lib/Hashiparmentier/UI/AstucesUI.rb', line 5 def initialize() @builderAide = Gtk::Builder.new @builderAide.add_from_file("lib/Hashiparmentier/glade/astuces.glade") @window = @builderAide.get_object("windowAstuces") @window.maximize @window.signal_connect('destroy') { || Gtk.main_quit } @window.style_context.add_provider(@@CSS_ASTUCES, Gtk::StyleProvider::PRIORITY_USER) @btnQuitter = @builderAide.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 |