direct.tkwidgets.Floater

from direct.tkwidgets.Floater import Floater, FloaterGroup, FloaterWidget
Floater Class: Velocity style controller for floating point values with

a label, entry (validated), and scale

Inheritance diagram

Inheritance diagram of direct.tkwidgets.Floater

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

Bases: direct.tkwidgets.Valuator.Valuator

__init__(self, parent=None, **kw)[source]
createValuator(self)[source]
packValuator(self)[source]
class FloaterGroup(parent=None, **kw)[source]

Bases: _Pmw.Pmw_2_0_1.lib.PmwBase.MegaToplevel

__init__(self, parent=None, **kw)[source]
get(self)[source]
getAt(self, index)[source]
reset(self)[source]
set(self, value, fCommand=1)[source]
setAt(self, index, value)[source]
toggleBalloon(self)[source]
class FloaterWidget(parent=None, **kw)[source]

Bases: _Pmw.Pmw_2_0_1.lib.PmwBase.MegaWidget

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

Get current floater value

highlightWidget(self, event)[source]
mouseDown(self, event)[source]

Begin mouse interaction

mouseUp(self, event)[source]
restoreWidget(self, event)[source]
set(value, fCommand = 1)[source]

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

setBackground(self)[source]
setBorderwidth(self)[source]
setNumDigits(self)[source]

Adjust minimum exponent to use in velocity task based upon the number of digits to be displayed in the result

setRelief(self)[source]
updateFloaterSF(self, event)[source]

Update velocity scale factor based of mouse distance from origin

updateFloaterTask(self, state)[source]

Update floaterWidget value based on current scaleFactor Adjust for time to compensate for fluctuating frame rates

updateIndicator(self, value)[source]