|
|
|
API Reference: Valuator
Valuator
from direct.tkwidgets.Valuator import Valuator
Inheritance:
Methods of Valuator:
__init__
def __init__(self, parent=None, **kw)
Undocumented function.
|
_mouseDown
def _mouseDown(self)
Function to execute at start of mouse interaction
|
_mouseUp
def _mouseUp(self)
Function to execute at end of mouse interaction
|
addValuatorMenuEntries
def addValuatorMenuEntries(self)
Function used by subclass to add menu entries to popup menu
|
createValuator
def createValuator(self)
Function used by subclass to create valuator geometry
|
get
def get(self)
Return current widget value
|
mouseReset
def mouseReset(self, event)
Reset valuator to resetValue
|
packValuator
def packValuator(self)
Function used by subclass to pack widget
|
reset
def reset(self)
self.reset() Reset valuator to reset value
|
set
def set(self, value, fCommand=1)
Update widget's value by setting valuator, which will in turn update the entry. fCommand flag (which is passed to the valuator as commandData, which is then passed in turn to self.setEntry) controls command execution.
|
setEntry
def setEntry(self, value, fCommand=1)
Update value displayed in entry, fCommand flag controls command execution
|
setEntryFormat
def setEntryFormat(self)
Change the number of significant digits in entry
|
setLabel
def setLabel(self)
Update label's text
|
setState
def setState(self)
Enable/disable widget
|
validateEntryInput
def validateEntryInput(self, event)
Check validity of entry and if valid pass along to valuator
|
zero
def zero(self)
self.zero() Set valuator to zero
|
| | |