Class: ChoixNomUI
- Inherits:
-
Gtk::Box
- Object
- Gtk::Box
- ChoixNomUI
- Defined in:
- lib/Hashiparmentier/UI/ChoixNomUI.rb
Overview
PAS UTILISE DANS LE VERSION FINALE
- Auteur
-
Brabant Mano
- Version
-
0.1
- Date
-
09/04/2020
Permet de choisir une nom
Instance Attribute Summary collapse
-
#entry ⇒ Object
readonly
Returns the value of attribute entry.
-
#menu ⇒ Object
readonly
Returns the value of attribute menu.
Instance Method Summary collapse
-
#initialize(menu) ⇒ ChoixNomUI
constructor
A new instance of ChoixNomUI.
Constructor Details
#initialize(menu) ⇒ ChoixNomUI
Returns a new instance of ChoixNomUI.
19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 |
# File 'lib/Hashiparmentier/UI/ChoixNomUI.rb', line 19 def initialize() super(:vertical, 0) @menu = @entry = Gtk::Entry.new() @label = Gtk::Label.new("Prénom") temp = Gtk::Box.new(:horizontal, 0) temp.pack_start(Gtk::Alignment.new(0,0,0,0), :expand => true, :fill => true) temp.pack_start(@label) temp.pack_start(@entry, :fill => true) temp.pack_start(Gtk::Alignment.new(0,0,0,0), :expand => true, :fill => true) pack_start(temp, :expand => true, :fill => true) end |
Instance Attribute Details
#entry ⇒ Object (readonly)
Returns the value of attribute entry.
17 18 19 |
# File 'lib/Hashiparmentier/UI/ChoixNomUI.rb', line 17 def entry @entry end |
#menu ⇒ Object (readonly)
Returns the value of attribute menu.
16 17 18 |
# File 'lib/Hashiparmentier/UI/ChoixNomUI.rb', line 16 def @menu end |