Panda3D
Public Member Functions | Public Attributes | List of all members
DirectGuiBase Class Reference
Inheritance diagram for DirectGuiBase:
DirectGuiWidget DirectFrame DirectButton DirectDialog DirectEntry DirectEntryScroll DirectLabel DirectScrollBar DirectScrolledFrame DirectScrolledList DirectSlider DirectWaitBar

Public Member Functions

def __init__ (self)
 
def __setitem__ (self, key, value)
 
def addoptions (self, optionDefs, optionkeywords)
 
def bind (self, event, command, extraArgs=[])
 
def cget (self, option)
 
def component (self, name)
 
def components (self)
 
def configure (self, option=None, **kw)
 
def createcomponent (self, componentName, componentAliases, componentGroup, widgetClass, *widgetArgs, **kw)
 
def defineoptions (self, keywords, optionDefs, dynamicGroups=())
 
def destroy (self)
 
def destroycomponent (self, name)
 
def hascomponent (self, component)
 
def initialiseoptions (self, myClass)
 
def isinitoption (self, option)
 
def options (self)
 
def postInitialiseFunc (self)
 
def unbind (self, event)
 

Public Attributes

 fInit
 
 guiId
 
 postInitialiseFuncList
 

Detailed Description

Base class of all DirectGUI widgets.

Constructor & Destructor Documentation

◆ __init__()

def __init__ (   self)

Member Function Documentation

◆ __setitem__()

def __setitem__ (   self,
  key,
  value 
)

◆ addoptions()

def addoptions (   self,
  optionDefs,
  optionkeywords 
)
addoptions(optionDefs) - add option def to option info 

◆ bind()

def bind (   self,
  event,
  command,
  extraArgs = [] 
)
Bind the command (which should expect one arg) to the specified
event (such as ENTER, EXIT, B1PRESS, B1CLICK, etc.)
See DirectGuiGlobals for possible events

◆ cget()

def cget (   self,
  option 
)
Get current configuration setting for this option

◆ component()

def component (   self,
  name 
)

◆ components()

def components (   self)

◆ configure()

def configure (   self,
  option = None,
**  kw 
)
configure(option = None)
Query or configure the megawidget options.

◆ createcomponent()

def createcomponent (   self,
  componentName,
  componentAliases,
  componentGroup,
  widgetClass,
widgetArgs,
**  kw 
)
Create a component (during construction or later) for this widget.

◆ defineoptions()

def defineoptions (   self,
  keywords,
  optionDefs,
  dynamicGroups = () 
)
defineoptions(keywords, optionDefs, dynamicGroups = {}) 

◆ destroy()

def destroy (   self)

◆ destroycomponent()

def destroycomponent (   self,
  name 
)

◆ hascomponent()

def hascomponent (   self,
  component 
)

◆ initialiseoptions()

def initialiseoptions (   self,
  myClass 
)
Call all initialisation functions to initialize widget
options to default of keyword value

◆ isinitoption()

def isinitoption (   self,
  option 
)
Is this opition one that can only be specified at construction?

◆ options()

def options (   self)
Print out a list of available widget options.
Does not include subcomponent options.

◆ postInitialiseFunc()

def postInitialiseFunc (   self)

◆ unbind()

def unbind (   self,
  event 
)
Unbind the specified event

Member Data Documentation

◆ fInit

fInit

◆ guiId

guiId

◆ postInitialiseFuncList

postInitialiseFuncList