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

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

Bases: MegaToplevel

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

Bases: MegaWidget

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

Get current floater value

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

Begin mouse interaction

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

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

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

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

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

Update velocity scale factor based of mouse distance from origin

updateFloaterTask(state)[source]

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

updateIndicator(value)[source]