Panda3D
|
def __init__ | ( | self, | |
parent = None , |
|||
kw | |||
) |
Reimplemented from DirectFrame.
def __setitem__ | ( | self, | |
key, | |||
value | |||
) | [inherited] |
def addItem | ( | self, | |
item, | |||
refresh = 1 |
|||
) |
Add this string and extraArg to the list
def addoptions | ( | self, | |
optionDefs, | |||
optionkeywords | |||
) | [inherited] |
addoptions(optionDefs) - add option def to option info
def bind | ( | self, | |
event, | |||
command, | |||
extraArgs = [] |
|||
) | [inherited] |
Bind the command (which should expect one arg) to the specified event (such as ENTER, EXIT, B1PRESS, B1CLICK, etc.) See DirectGuiGlobals for possible events
def cget | ( | self, | |
option | |||
) | [inherited] |
Get current configuration setting for this option
def component | ( | self, | |
name | |||
) | [inherited] |
def components | ( | self | ) | [inherited] |
def configure | ( | self, | |
option = None , |
|||
kw | |||
) | [inherited] |
configure(option = None) Query or configure the megawidget options.
def copyOptions | ( | self, | |
other | |||
) | [inherited] |
Copy other's options into our self so we look and feel like other
def createcomponent | ( | self, | |
componentName, | |||
componentAliases, | |||
componentGroup, | |||
widgetClass, | |||
widgetArgs, | |||
kw | |||
) | [inherited] |
Create a component (during construction or later) for this widget.
def defineoptions | ( | self, | |
keywords, | |||
optionDefs, | |||
dynamicGroups = () |
|||
) | [inherited] |
defineoptions(keywords, optionDefs, dynamicGroups = {})
def destroy | ( | self | ) |
Reimplemented from DirectFrame.
def destroycomponent | ( | self, | |
name | |||
) | [inherited] |
def disableEdit | ( | self | ) | [inherited] |
def editStart | ( | self, | |
event | |||
) | [inherited] |
def editStop | ( | self, | |
event | |||
) | [inherited] |
def enableEdit | ( | self | ) | [inherited] |
def frameInitialiseFunc | ( | self | ) | [inherited] |
def getBounds | ( | self, | |
state = 0 |
|||
) | [inherited] |
Reimplemented in DirectEntry.
def getCenter | ( | self | ) | [inherited] |
def getFrameType | ( | self, | |
state = 0 |
|||
) | [inherited] |
def getHeight | ( | self | ) | [inherited] |
def getItemIndexForItemID | ( | self, | |
itemID | |||
) |
def getSelectedIndex | ( | self | ) |
def getSelectedText | ( | self | ) |
def getWidth | ( | self | ) | [inherited] |
def guiDragTask | ( | self, | |
state | |||
) | [inherited] |
def guiScaleTask | ( | self, | |
state | |||
) | [inherited] |
def hascomponent | ( | self, | |
component | |||
) | [inherited] |
def initialiseoptions | ( | self, | |
myClass | |||
) | [inherited] |
Call all initialisation functions to initialize widget options to default of keyword value
def isinitoption | ( | self, | |
option | |||
) | [inherited] |
Is this opition one that can only be specified at construction?
def makeAllItems | ( | self | ) |
def options | ( | self | ) | [inherited] |
Print out a list of available widget options. Does not include subcomponent options.
def postInitialiseFunc | ( | self | ) | [inherited] |
def printConfig | ( | self, | |
indent = 0 |
|||
) | [inherited] |
def recordMaxHeight | ( | self | ) |
def refresh | ( | self | ) |
Update the list - useful when adding or deleting items or changing properties that would affect the scrolling
def removeAllItems | ( | self, | |
refresh = 1 |
|||
) |
Remove this item from the panel Warning 2006_10_19 tested only in the trolley metagame
def removeAndDestroyAllItems | ( | self, | |
refresh = 1 |
|||
) |
Remove and destroy all items from the panel. Warning 2006_10_19 tested only in the trolley metagame
def removeAndDestroyItem | ( | self, | |
item, | |||
refresh = 1 |
|||
) |
Remove and destroy this item from the panel.
def removeItem | ( | self, | |
item, | |||
refresh = 1 |
|||
) |
Remove this item from the panel
def resetFrameSize | ( | self | ) | [inherited] |
Reimplemented in DirectCheckButton, and DirectRadioButton.
def scrollBy | ( | self, | |
delta | |||
) |
def scrollTo | ( | self, | |
index, | |||
centered = 0 |
|||
) |
scrolls list so selected index is at top, or centered in box
def scrollToItemID | ( | self, | |
itemID, | |||
centered = 0 |
|||
) |
def selectListItem | ( | self, | |
item | |||
) |
def setBorderUvWidth | ( | self | ) | [inherited] |
def setBorderWidth | ( | self | ) | [inherited] |
def setDecButtonCallback | ( | self | ) |
def setForceHeight | ( | self | ) |
def setFrameColor | ( | self | ) | [inherited] |
def setFrameSize | ( | self, | |
fClearFrame = 0 |
|||
) | [inherited] |
Reimplemented in DirectCheckButton, and DirectRadioButton.
def setFrameTexture | ( | self | ) | [inherited] |
def setFrameVisibleScale | ( | self | ) | [inherited] |
def setGeom | ( | self | ) | [inherited] |
def setImage | ( | self | ) | [inherited] |
def setIncButtonCallback | ( | self | ) |
def setNumItemsVisible | ( | self | ) |
def setProp | ( | self, | |
propString, | |||
value | |||
) | [inherited] |
Allows you to set a property like frame['text'] = 'Joe' in a function instead of an assignment. This is useful for setting properties inside function intervals where must input a function and extraArgs, not an assignment.
def setRelief | ( | self, | |
fSetStyle = 1 |
|||
) | [inherited] |
def setScrollSpeed | ( | self | ) |
def setState | ( | self | ) | [inherited] |
def setText | ( | self | ) | [inherited] |
def taskName | ( | self, | |
idString | |||
) | [inherited] |
def unbind | ( | self, | |
event | |||
) | [inherited] |
Unbind the specified event
def uniqueName | ( | self, | |
idString | |||
) | [inherited] |
def updateFrameStyle | ( | self | ) | [inherited] |
bounds [inherited] |
Reimplemented in DirectCheckButton, DirectEntry, and DirectRadioButton.
tuple DefDynGroups = ('text', 'geom', 'image') [static, inherited] |
fInit [inherited] |
frameStyle [inherited] |
float gridSpacing = 0.05 [static, inherited] |
dictionary guiDict = {} [static, inherited] |
tuple guiEdit = config.GetBool('direct-gui-edit', 0) [static, inherited] |
guiId [inherited] |
Reimplemented from DirectGuiBase.
guiItem [inherited] |
inactiveInitState = DGG.NORMAL [static, inherited] |
ll [inherited] |
Reimplemented in DirectEntry.
tuple notify = DirectNotifyGlobal.directNotify.newCategory("DirectScrolledList") [static] |
postInitialiseFuncList [inherited] |
int snapToGrid = 0 [static, inherited] |
stateNodePath [inherited] |
ur [inherited] |
Reimplemented in DirectEntry.