Sha256: ca054ae69a28e92b97acae749bb64f57828c21afe75294f6463b85802964e293

Contents?: true

Size: 722 Bytes

Versions: 1

Compression:

Stored size: 722 Bytes

Contents

require_relative '../CSS/Style.rb'

class AideJeuUI

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

        @window = @builderAideJeu.get_object("windowAide")

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

        @btnQuitter = @builderAideJeu.get_object("btnQuitter")
        @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
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
Hashiparmentier-0.4.0 lib/Hashiparmentier/UI/AideJeuUI.rb