Class: Shoes::App::Ask

Inherits:
Qt::Dialog
  • Object
show all
Defined in:
lib/blue_shoes/app.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, parent = nil) ⇒ Ask

Returns a new instance of Ask.



103
104
105
106
107
108
109
110
111
112
# File 'lib/blue_shoes/app.rb', line 103

def initialize(message, parent = nil)
  super(parent)
  ok = Qt::Boolean.new
  self.text = Qt::InputDialog.getText(self,
                                  "I have a Question?",
                                  message,
                                  Qt::LineEdit::Normal,
                                  Qt::Dir::home().dirName(),
                                  ok)
end

Instance Attribute Details

#textObject

Returns the value of attribute text.



101
102
103
# File 'lib/blue_shoes/app.rb', line 101

def text
  @text
end