Vega strike Python Modules doc  0.5.1
Documentation of the " Modules " folder of Vega strike
 All Data Structures Namespaces Files Functions Variables
DialogBox.TextInput Class Reference
Inheritance diagram for DialogBox.TextInput:
DialogBox.Item

Public Member Functions

def __init__
 
def height
 
def getValues
 
def handleButton
 
def create
 
- Public Member Functions inherited from DialogBox.Item
def __init__
 
def height
 
def width
 
def getValues
 
def create
 
def draw
 
def undraw
 

Data Fields

 text
 
 gui_element
 
- Data Fields inherited from DialogBox.Item
 gui_element
 
 idname
 
 id
 

Additional Inherited Members

- Static Public Attributes inherited from DialogBox.Item
int next_id = 0
 

Detailed Description

Definition at line 211 of file dialog_box.py.

Constructor & Destructor Documentation

def __init__ (   self,
  id,
  text 
)

Definition at line 212 of file dialog_box.py.

213  def __init__(self,id,text):
214  self.text=text
DialogBox.Item.__init__(self,id)

Member Function Documentation

def create (   self,
  owner,
  room,
  x,
  y,
  wid,
  hei 
)

Definition at line 222 of file dialog_box.py.

References dialog_box.makeRect().

223  def create(self,owner,room,x,y,wid,hei):
224  screen_loc=makeRect(x,y,wid,hei)
225  self.gui_element=GUI.GUILineEdit(self.handleButton,room,self.idname,self.text, screen_loc,
226  color=input_color,fontsize=font_size,bgcolor=screen_bgcolor,focusbutton=True,owner=owner)
227  return self.gui_element
228 
229 
class Row(Item):
def getValues (   self,
  values 
)

Definition at line 217 of file dialog_box.py.

References DialogBox.Item.id.

218  def getValues(self,values):
219  values.append(self.id)
values.append(self.gui_element.getText())
def handleButton (   self,
  textarea 
)

Definition at line 220 of file dialog_box.py.

221  def handleButton(self,textarea):
textarea.owner.close(not textarea.canceled)
def height (   self)

Definition at line 215 of file dialog_box.py.

216  def height(self):
return text_height

Field Documentation

gui_element

Definition at line 224 of file dialog_box.py.

text

Definition at line 213 of file dialog_box.py.


The documentation for this class was generated from the following file: