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: Dial

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

Bases: Valuator

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

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

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

setDelta()[source]

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

setRollover()[source]

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

setSnap()[source]

Turn Dial angle snap on/off

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

Bases: MegaWidget

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

Get current dial value

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

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

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