direct.tkwidgets.Valuator

from direct.tkwidgets.Valuator import Valuator, ValuatorGroup, ValuatorGroupPanel, lightRGBPanel, rgbPanel

Undocumented Module

Inheritance diagram

Inheritance diagram of direct.tkwidgets.Valuator

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

Bases: MegaWidget

__init__(self, parent=None, **kw)[source]
addPropertyToDialog(self, property, pDict)[source]
addValuatorMenuEntries(self)[source]

Function used by subclass to add menu entries to popup menu

addValuatorPropertiesToDialog(self)[source]

Function used by subclass to add properties to property dialog

createValuator(self)[source]

Function used by subclass to create valuator geometry

deadband = 5

Base class for widgets used to interactively adjust numeric values

get(self)[source]

Return current widget value

mouseReset(self, event)[source]

Reset valuator to resetValue

packValuator(self)[source]

Function used by subclass to pack widget

reset()[source]

Reset valuator to reset value

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

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(self, value, fCommand=1)[source]

Update value displayed in entry, fCommand flag controls command execution

setEntryFormat(self)[source]

Change the number of significant digits in entry

setLabel(self)[source]

Update label’s text

setState(self)[source]

Enable/disable widget

sfBase = 3.0
sfDist = 7
validateEntryInput(self, event)[source]

Check validity of entry and if valid pass along to valuator

zero()[source]

Set valuator to zero

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

Bases: MegaWidget

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

Bases: MegaToplevel

__init__(self, parent=None, **kw)[source]
get(this, *args, **kw)
getAt(this, *args, **kw)
grid_configure(this, *args, **kw)
grid_forget(this, *args, **kw)
grid_info(this, *args, **kw)
grid_remove(this, *args, **kw)
info(this, *args, **kw)
location(this, *args, **kw)
pack(this, *args, **kw)
pack_configure(this, *args, **kw)
pack_forget(this, *args, **kw)
pack_info(this, *args, **kw)
place(this, *args, **kw)
place_configure(this, *args, **kw)
place_forget(this, *args, **kw)
place_info(this, *args, **kw)
reset(self)[source]
set(this, *args, **kw)
setAt(this, *args, **kw)
toggleBalloon(self)[source]
lightRGBPanel(light, style='mini')[source]
rgbPanel(nodePath, callback=None, style='mini')[source]