Panda3D
Public Member Functions | Public Attributes | Static Public Attributes

DirectEntry Class Reference

Inheritance diagram for DirectEntry:
DirectFrame DirectGuiWidget DirectGuiBase

List of all members.

Public Member Functions

def __init__
def __setitem__
def addoptions
def autoCapitalizeFunc
def bind
def cget
def commandFunc
def component
def components
def configure
def copyOptions
def createcomponent
def defineoptions
def destroy
def destroycomponent
def disableEdit
def editStart
def editStop
def enableEdit
def enterText
def failedCommandFunc
def focusInCommandFunc
def focusOutCommandFunc
def frameInitialiseFunc
def get
def getBounds
def getCenter
def getFont
def getFrameType
def getHeight
def getWidth
def guiDragTask
def guiScaleTask
def hascomponent
def initialiseoptions
def isinitoption
def options
def postInitialiseFunc
def printConfig
def resetFrameSize
def set
def setBackgroundFocus
def setBorderUvWidth
def setBorderWidth
def setClickSound
def setCursorKeysActive
def setCursorPosition
def setFocus
def setFrameColor
def setFrameSize
def setFrameTexture
def setFrameVisibleScale
def setGeom
def setImage
def setObscureMode
def setProp
def setRelief
def setRolloverSound
def setState
def setText
def setup
def taskName
def unbind
def uniqueName
def updateFrameStyle

Public Attributes

 autoCapitalizeAllowPrefixes
 autoCapitalizeForcePrefixes
 bounds
 fInit
 frameStyle
 guiId
 guiItem
 ll
 onscreenText
 postInitialiseFuncList
 stateNodePath
 unicodeText
 ur

Static Public Attributes

tuple AllowCapNamePrefixes
tuple DefDynGroups = ('text', 'geom', 'image')
tuple directWtext = ConfigVariableBool('direct-wtext', 1)
tuple ForceCapNamePrefixes = ("D'", "DeLa", "Dell'", "L'", "M'", "Mc", "O'", )
float gridSpacing = 0.05
dictionary guiDict = {}
tuple guiEdit = config.GetBool('direct-gui-edit', 0)
 inactiveInitState = DGG.NORMAL
int snapToGrid = 0

Detailed Description

DirectEntry(parent) - Create a DirectGuiWidget which responds
to keyboard buttons

Constructor & Destructor Documentation

def __init__ (   self,
  parent = None,
  kw 
)

Reimplemented from DirectFrame.


Member Function Documentation

def __setitem__ (   self,
  key,
  value 
) [inherited]
def addoptions (   self,
  optionDefs,
  optionkeywords 
) [inherited]
addoptions(optionDefs) - add option def to option info 
def autoCapitalizeFunc (   self)
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 commandFunc (   self,
  event 
)
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 enterText (   self,
  text 
)
sets the entry's text, and moves the cursor to the end 
def failedCommandFunc (   self,
  event 
)
def focusInCommandFunc (   self)
def focusOutCommandFunc (   self)
def frameInitialiseFunc (   self) [inherited]
def get (   self,
  plain = False 
)
Returns the text currently showing in the typable region.
If plain is True, the returned text will not include any
formatting characters like nested color-change codes. 
def getBounds (   self,
  state = 0 
)

Reimplemented from DirectGuiWidget.

def getCenter (   self) [inherited]
def getFont (   self)
def getFrameType (   self,
  state = 0 
) [inherited]
def getHeight (   self) [inherited]
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 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 resetFrameSize (   self) [inherited]

Reimplemented in DirectCheckButton, and DirectRadioButton.

def set (   self,
  text 
)
Changes the text currently showing in the typable region;
does not change the current cursor position.  Also see
enterText(). 
def setBackgroundFocus (   self)
def setBorderUvWidth (   self) [inherited]
def setBorderWidth (   self) [inherited]
def setClickSound (   self)
def setCursorKeysActive (   self)
def setCursorPosition (   self,
  pos 
)
def setFocus (   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 setObscureMode (   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 setRolloverSound (   self)
def setState (   self) [inherited]
def setText (   self) [inherited]
def setup (   self)
def taskName (   self,
  idString 
) [inherited]
def unbind (   self,
  event 
) [inherited]
Unbind the specified event
def uniqueName (   self,
  idString 
) [inherited]
def updateFrameStyle (   self) [inherited]

Member Data Documentation

tuple AllowCapNamePrefixes [static]
Initial value:
("Al", "Ap", "Ben", "De", "Del", "Della", "Delle", "Der", "Di", "Du",
                            "El", "Fitz", "La", "Las", "Le", "Les", "Lo", "Los",
                            "Mac", "St", "Te", "Ten", "Van", "Von", )

Reimplemented from DirectGuiWidget.

tuple DefDynGroups = ('text', 'geom', 'image') [static, inherited]
tuple directWtext = ConfigVariableBool('direct-wtext', 1) [static]
fInit [inherited]
tuple ForceCapNamePrefixes = ("D'", "DeLa", "Dell'", "L'", "M'", "Mc", "O'", ) [static]
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

Reimplemented from DirectGuiWidget.

int snapToGrid = 0 [static, inherited]
stateNodePath [inherited]
ur

Reimplemented from DirectGuiWidget.

 All Classes Namespaces Functions Variables Enumerations Enumerator Properties