API Reference: Dial

Dial

    from direct.tkwidgets.Dial import Dial
    Valuator widget which includes an angle dial and an entry for setting floating point values

Inheritance:

Methods of Dial:

Methods of Valuator:

__init__
def __init__(self, parent=None, **kw)

Undocumented function.

_setRollover
def _setRollover(self)

Menu command to turn Dial rollover on/off (i.e. does value accumulate every time you complete a revolution of the dial?)

_setSnap
def _setSnap(self)

Menu command to turn Dial angle snap on/off

addValuatorMenuEntries
def addValuatorMenuEntries(self)

Undocumented function.

addValuatorPropertiesToDialog
def addValuatorPropertiesToDialog(self)

Undocumented function.

createValuator
def createValuator(self)

Undocumented function.

packValuator
def packValuator(self)

Undocumented function.

setBase
def setBase(self)

Set Dial base value: value = base + delta * numRevs

setDelta
def setDelta(self)

Set Dial delta value: value = base + delta * numRevs

setRollover
def setRollover(self)

Turn Dial rollover (accumulation of a sum) on/off

setSnap
def setSnap(self)

Turn Dial angle snap on/off

__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