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

Public Member Functions

def __init__
 
def height
 
def width
 
def getValues
 
def create
 
def draw
 
def undraw
 

Data Fields

 gui_element
 
 idname
 
 id
 

Static Public Attributes

int next_id = 0
 

Detailed Description

Definition at line 86 of file dialog_box.py.

Constructor & Destructor Documentation

def __init__ (   self,
  id = None 
)

Definition at line 88 of file dialog_box.py.

88 
89  def __init__(self,id=None):
90  self.gui_element=None
91  numid=DialogBox.Item.next_id=DialogBox.Item.next_id+1
92  numid=str(numid)
93  id = id or ''
94  self.idname=id+"_"+numid
95  id = id or numid
self.id=id

Member Function Documentation

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

Definition at line 102 of file dialog_box.py.

103  def create(self,owner,room,x,y,wid,hei):
return None
def draw (   self)

Definition at line 104 of file dialog_box.py.

References DialogBox.Item.gui_element.

105  def draw(self):
106  #print 'Drawing element',self.idname
107  if self.gui_element:
108  self.gui_element.show()
self.gui_element.draw()
def getValues (   self,
  values 
)

Definition at line 100 of file dialog_box.py.

101  def getValues(self,values):
pass
def height (   self)

Definition at line 96 of file dialog_box.py.

96 
97  def height(self):
return 0.
def undraw (   self)

Definition at line 109 of file dialog_box.py.

References DialogBox.Item.gui_element.

110  def undraw(self):
111  if self.gui_element:
112  self.gui_element.hide()
113  self.gui_element.undraw()
class Space(Item):
def width (   self)

Definition at line 98 of file dialog_box.py.

98 
99  def width(self):
return 0.

Field Documentation

gui_element

Definition at line 89 of file dialog_box.py.

id

Definition at line 95 of file dialog_box.py.

idname

Definition at line 93 of file dialog_box.py.

int next_id = 0
static

Definition at line 87 of file dialog_box.py.


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