Class: ChoixNomUI

Inherits:
Gtk::Box
  • Object
show all
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

Instance Method Summary collapse

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(menu)

  super(:vertical, 0)

  @menu = 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

#entryObject (readonly)

Returns the value of attribute entry.



17
18
19
# File 'lib/Hashiparmentier/UI/ChoixNomUI.rb', line 17

def entry
  @entry
end

Returns the value of attribute menu.



16
17
18
# File 'lib/Hashiparmentier/UI/ChoixNomUI.rb', line 16

def menu
  @menu
end