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

_popupPropertiesDialog
def _popupPropertiesDialog(self)

Undocumented function.

_popupValuatorMenu
def _popupValuatorMenu(self, event)

Undocumented function.

_postCallback
def _postCallback(self)

Undocumented function.

_preCallback
def _preCallback(self)

Undocumented function.

addPropertyToDialog
def addPropertyToDialog(self, property, pDict)

Undocumented function.

addValuatorMenuEntries
def addValuatorMenuEntries(self)

Function used by subclass to add menu entries to popup menu

addValuatorPropertiesToDialog
def addValuatorPropertiesToDialog(self)

Function used by subclass to add properties to property dialog

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