Panda3D
|
Public Member Functions | |
__init__ (self, parent=None, **kw) | |
addPropertyToDialog (self, property, pDict) | |
addValuatorMenuEntries (self) | |
addValuatorPropertiesToDialog (self) | |
createValuator (self) | |
get (self) | |
mouseReset (self, event) | |
packValuator (self) | |
reset (self) | |
set (self, value, fCommand=1) | |
setEntry (self, value, fCommand=1) | |
setEntryFormat (self) | |
setLabel (self) | |
setState (self) | |
validateEntryInput (self, event) | |
zero (self) | |
Public Attributes | |
adjustedValue | |
entryFormat | |
fInit | |
propertyDict | |
propertyList | |
setEntryFormat | |
setLabel | |
setState | |
validateEntryInput | |
Static Public Attributes | |
int | deadband = 5 |
float | sfBase = 3.0 |
int | sfDist = 7 |
Protected Member Functions | |
_mouseDown (self) | |
_mouseUp (self) | |
_popupPropertiesDialog (self) | |
_popupValuatorMenu (self, event) | |
_postCallback (self) | |
_preCallback (self) | |
Protected Attributes | |
_entry | |
_entryBackground | |
_entryVal | |
_label | |
_popupMenu | |
_popupValuatorMenu | |
|
protected |
Function to execute at start of mouse interaction
|
protected |
Function to execute at end of mouse interaction
|
protected |
|
protected |
|
protected |
|
protected |
addPropertyToDialog | ( | self, | |
property, | |||
pDict ) |
addValuatorMenuEntries | ( | self | ) |
Function used by subclass to add menu entries to popup menu
Reimplemented in Dial.
addValuatorPropertiesToDialog | ( | self | ) |
Function used by subclass to add properties to property dialog
Reimplemented in Dial.
createValuator | ( | self | ) |
get | ( | self | ) |
Return current widget value
mouseReset | ( | self, | |
event ) |
Reset valuator to resetValue
packValuator | ( | self | ) |
reset | ( | self | ) |
self.reset() Reset valuator to reset value
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 | ( | self, | |
value, | |||
fCommand = 1 ) |
Update value displayed in entry, fCommand flag controls command execution
setEntryFormat | ( | self | ) |
Change the number of significant digits in entry
setLabel | ( | self | ) |
Update label's text
setState | ( | self | ) |
Enable/disable widget
validateEntryInput | ( | self, | |
event ) |
Check validity of entry and if valid pass along to valuator
zero | ( | self | ) |
self.zero() Set valuator to zero
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
adjustedValue |
|
static |
entryFormat |
fInit |
propertyDict |
propertyList |
setEntryFormat |
setLabel |
setState |
|
static |
|
static |
validateEntryInput |