Wizards Magic  3.2.20
MTG based computer game
 All Classes Namespaces Files Functions Variables Typedefs Macros
Public Member Functions | Public Attributes | List of all members
widgets.TxtInput Class Reference
Inheritance diagram for widgets.TxtInput:

Public Member Functions

def __init__
 
def draw
 
def update
 
def enable
 
def disable
 
def change
 
def onmousedown
 
def onmouseup
 

Public Attributes

 type
 
 color
 
 color_disable
 
 font
 
 pos
 
 label
 
 text
 
 length
 
 key
 
 size
 
 focus
 
 currpos
 
 numeric
 
 enabled
 
 label_image
 
 text_image
 
 label_rect
 
 text_rect
 
 image
 
 rect
 
 enable
 

Detailed Description

class handling input box:
pos: # of line from the top of form
label: box label
text: text inside box
length: box length in chars
numeric: True=accept only numbers
enabled: false=disabled box
key: configuration key

Constructor & Destructor Documentation

def widgets.TxtInput.__init__ (   self,
  pos = 0,
  label = "",
  text = "",
  length = 0,
  numeric = False,
  enabled = True,
  key = "" 
)

Member Function Documentation

def widgets.TxtInput.change (   self,
  event 
)
def widgets.TxtInput.disable (   self)
def widgets.TxtInput.draw (   self)
def widgets.TxtInput.enable (   self)
def widgets.TxtInput.onmousedown (   self)
def widgets.TxtInput.onmouseup (   self)
def widgets.TxtInput.update (   self)

Member Data Documentation

widgets.TxtInput.color
widgets.TxtInput.color_disable
widgets.TxtInput.currpos
widgets.TxtInput.enable
widgets.TxtInput.enabled
widgets.TxtInput.focus
widgets.TxtInput.font
widgets.TxtInput.image
widgets.TxtInput.key
widgets.TxtInput.label
widgets.TxtInput.label_image
widgets.TxtInput.label_rect
widgets.TxtInput.length
widgets.TxtInput.numeric
widgets.TxtInput.pos
widgets.TxtInput.rect
widgets.TxtInput.size
widgets.TxtInput.text
widgets.TxtInput.text_image
widgets.TxtInput.text_rect
widgets.TxtInput.type

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