direct.tkwidgets.Dial

from direct.tkwidgets.Dial import AngleDial, Dial, DialWidget
Dial Class: Velocity style controller for floating point values with

a label, entry (validated), and scale

Inheritance diagram

Inheritance diagram of direct.tkwidgets.Dial

class AngleDial(parent=None, **kw)[source]

Bases: direct.tkwidgets.Dial.Dial

__init__(self, parent=None, **kw)[source]
class Dial(parent=None, **kw)[source]

Bases: direct.tkwidgets.Valuator.Valuator

Valuator widget which includes an angle dial and an entry for setting floating point values

__init__(self, parent=None, **kw)[source]
addValuatorMenuEntries(self)[source]
addValuatorPropertiesToDialog(self)[source]
createValuator(self)[source]
packValuator(self)[source]
setBase(self)[source]

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

setDelta(self)[source]

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

setRollover(self)[source]

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

setSnap(self)[source]

Turn Dial angle snap on/off

class DialWidget(parent=None, **kw)[source]

Bases: _Pmw.Pmw_2_0_1.lib.PmwBase.MegaWidget

__init__(self, parent=None, **kw)[source]
computeDialAngle(self, event, fShift=0)[source]
computeValueFromAngle(self, dialAngle)[source]
get()[source]

Get current dial value

highlightKnob(self, event)[source]
knobMouseDown(self, event)[source]
knobMouseUp(self, event)[source]
mouseDown(self, event)[source]
mouseMotion(self, event, fShift=0)[source]
mouseUp(self, event)[source]
restoreKnob(self, event)[source]
set(value, fCommand = 1)[source]

Set dial to new value, execute command if fCommand == 1

setBackground(self)[source]
setBorderwidth(self)[source]
setNumDigits(self)[source]
setNumSegments(self)[source]
setRelief(self)[source]
shiftMouseMotion(self, event)[source]
updateDialSF(self, event)[source]
updateDialTask(self, state)[source]
updateIndicator(self, value)[source]
updateIndicatorDegrees(self, degAngle)[source]
updateIndicatorRadians(self, dialAngle)[source]