Class: ReglesUI

Inherits:
Object
  • Object
show all
Defined in:
lib/Hashiparmentier/UI/ReglesUI.rb

Instance Method Summary collapse

Constructor Details

#initializeReglesUI

Returns a new instance of ReglesUI.



5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# File 'lib/Hashiparmentier/UI/ReglesUI.rb', line 5

def initialize()
    @builderRegles = Gtk::Builder.new
    @builderRegles.add_from_file("lib/Hashiparmentier/glade/regles.glade")

    @window = @builderRegles.get_object("REGLES1")

    @window.signal_connect('destroy') { |_widget| Gtk.main_quit }
    # @window.style_context.add_provider(@@CSS_Regles, Gtk::StyleProvider::PRIORITY_USER)

    @btnQuitter = @builderRegles.get_object("Terminer")
    @btnQuitter.signal_connect('clicked') { |_widget| @window.destroy() }
    # @btnQuitter.style_context.add_provider(@@CSS_BUTTON_ROSE, Gtk::StyleProvider::PRIORITY_USER)


    @window.show_all()
    Gtk.main()
end