Panda3D
Public Member Functions | Public Attributes | Static Public Attributes | List of all members
DirectEntry Class Reference
Inheritance diagram for DirectEntry:
DirectFrame DirectGuiWidget DirectGuiBase

Public Member Functions

def __init__ (self, parent=None, kw)
 
def autoCapitalizeFunc (self)
 
def commandFunc (self, event)
 
def destroy (self)
 
def enterText (self, text)
 
def failedCommandFunc (self, event)
 
def focusInCommandFunc (self)
 
def focusOutCommandFunc (self)
 
def get (self, plain=False)
 
def getBounds (self, state=0)
 
def getFont (self)
 
def set (self, text)
 
def setBackgroundFocus (self)
 
def setClickSound (self)
 
def setCursorKeysActive (self)
 
def setCursorPosition (self, pos)
 
def setFocus (self)
 
def setObscureMode (self)
 
def setRolloverSound (self)
 
def setup (self)
 
- Public Member Functions inherited from DirectFrame
def __init__ (self, parent=None, kw)
 
def destroy (self)
 
def setGeom (self)
 
def setImage (self)
 
def setText (self)
 
- Public Member Functions inherited from DirectGuiWidget
def __init__ (self, parent=None, kw)
 
def copyOptions (self, other)
 
def destroy (self)
 
def disableEdit (self)
 
def editStart (self, event)
 
def editStop (self, event)
 
def enableEdit (self)
 
def frameInitialiseFunc (self)
 
def getBounds (self, state=0)
 
def getCenter (self)
 
def getFrameType (self, state=0)
 
def getHeight (self)
 
def getWidth (self)
 
def guiDragTask (self, state)
 
def guiScaleTask (self, state)
 
def printConfig (self, indent=0)
 
def resetFrameSize (self)
 
def setBorderUvWidth (self)
 
def setBorderWidth (self)
 
def setFrameColor (self)
 
def setFrameSize (self, fClearFrame=0)
 
def setFrameTexture (self)
 
def setFrameVisibleScale (self)
 
def setProp (self, propString, value)
 
def setRelief (self, fSetStyle=1)
 
def setState (self)
 
def taskName (self, idString)
 
def uniqueName (self, idString)
 
def updateFrameStyle (self)
 
- Public Member Functions inherited from DirectGuiBase
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

 autoCapitalizeAllowPrefixes
 
 autoCapitalizeForcePrefixes
 
 bounds
 
 ll
 
 onscreenText
 
 unicodeText
 
 ur
 
- Public Attributes inherited from DirectGuiWidget
 bounds
 
 frameStyle
 
 guiId
 
 guiItem
 
 ll
 
 stateNodePath
 
 ur
 
- Public Attributes inherited from DirectGuiBase
 fInit
 
 guiId
 
 postInitialiseFuncList
 

Static Public Attributes

tuple AllowCapNamePrefixes
 
 directWtext = ConfigVariableBool('direct-wtext', 1)
 
tuple ForceCapNamePrefixes = ("D'", "DeLa", "Dell'", "L'", "M'", "Mc", "O'", )
 
- Static Public Attributes inherited from DirectFrame
tuple DefDynGroups = ('text', 'geom', 'image')
 
- Static Public Attributes inherited from DirectGuiWidget
float gridSpacing = 0.05
 
dictionary guiDict = {}
 
 guiEdit = get_config_showbase().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

◆ __init__()

def __init__ (   self,
  parent = None,
  kw 
)

Member Function Documentation

◆ autoCapitalizeFunc()

def autoCapitalizeFunc (   self)

◆ commandFunc()

def commandFunc (   self,
  event 
)

◆ destroy()

def destroy (   self)

◆ enterText()

def enterText (   self,
  text 
)
sets the entry's text, and moves the cursor to the end 

◆ failedCommandFunc()

def failedCommandFunc (   self,
  event 
)

◆ focusInCommandFunc()

def focusInCommandFunc (   self)

◆ focusOutCommandFunc()

def focusOutCommandFunc (   self)

◆ get()

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. 

◆ getBounds()

def getBounds (   self,
  state = 0 
)

◆ getFont()

def getFont (   self)

◆ set()

def set (   self,
  text 
)
Changes the text currently showing in the typable region;
does not change the current cursor position.  Also see
enterText(). 

◆ setBackgroundFocus()

def setBackgroundFocus (   self)

◆ setClickSound()

def setClickSound (   self)

◆ setCursorKeysActive()

def setCursorKeysActive (   self)

◆ setCursorPosition()

def setCursorPosition (   self,
  pos 
)

◆ setFocus()

def setFocus (   self)

◆ setObscureMode()

def setObscureMode (   self)

◆ setRolloverSound()

def setRolloverSound (   self)

◆ setup()

def setup (   self)

Member Data Documentation

◆ AllowCapNamePrefixes

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", )

◆ autoCapitalizeAllowPrefixes

autoCapitalizeAllowPrefixes

◆ autoCapitalizeForcePrefixes

autoCapitalizeForcePrefixes

◆ bounds

bounds

◆ directWtext

directWtext = ConfigVariableBool('direct-wtext', 1)
static

◆ ForceCapNamePrefixes

tuple ForceCapNamePrefixes = ("D'", "DeLa", "Dell'", "L'", "M'", "Mc", "O'", )
static

◆ ll

ll

◆ onscreenText

onscreenText

◆ unicodeText

unicodeText

◆ ur

ur