Class: Zerenity::Entry
Overview
:nodoc:
Class Method Summary collapse
- .build(dialog, options) ⇒ Object
- .check(options) ⇒ Object
- .retrieve_selection(dialog, options) ⇒ Object
Methods inherited from Base
Class Method Details
.build(dialog, options) ⇒ Object
21 22 23 24 25 26 27 28 29 |
# File 'lib/zerenity/entry.rb', line 21 def self.build(dialog,) super(dialog,) dialog.vbox.add(Gtk::Label.new([:text],false)) entry = Gtk::Entry.new entry.text = [:string] if [:string] entry.set_visibility(![:password]) entry.set_activates_default([:activatesDefault]) dialog.vbox.add(entry) end |
.check(options) ⇒ Object
17 18 19 |
# File 'lib/zerenity/entry.rb', line 17 def self.check() super() end |
.retrieve_selection(dialog, options) ⇒ Object
31 32 33 34 |
# File 'lib/zerenity/entry.rb', line 31 def self.retrieve_selection(dialog,) super(dialog,) dialog.vbox.children[1].text end |