Class: Zerenity::Entry

Inherits:
Base
  • Object
show all
Defined in:
lib/zerenity/entry.rb

Overview

:nodoc:

Class Method Summary collapse

Methods inherited from Base

run

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,options)
  super(dialog,options)
  dialog.vbox.add(Gtk::Label.new(options[:text],false))
  entry = Gtk::Entry.new
  entry.text = options[:string] if options[:string]
  entry.set_visibility(!options[:password])
  entry.set_activates_default(options[:activatesDefault])
  dialog.vbox.add(entry)
end

.check(options) ⇒ Object



17
18
19
# File 'lib/zerenity/entry.rb', line 17

def self.check(options)
  super(options)
end

.retrieve_selection(dialog, options) ⇒ Object



31
32
33
34
# File 'lib/zerenity/entry.rb', line 31

def self.retrieve_selection(dialog,options)
  super(dialog,options)
  dialog.vbox.children[1].text
end