mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 10:54:24 -04:00
formatting
This commit is contained in:
parent
387e2e8131
commit
130215ba73
@ -265,14 +265,12 @@ class DirectGuiBase(PandaObject.PandaObject):
|
|||||||
|
|
||||||
def isinitoption(self, option):
|
def isinitoption(self, option):
|
||||||
"""
|
"""
|
||||||
isinitoption(option)
|
|
||||||
Is this opition one that can only be specified at construction?
|
Is this opition one that can only be specified at construction?
|
||||||
"""
|
"""
|
||||||
return self._optionInfo[option][_OPT_FUNCTION] is INITOPT
|
return self._optionInfo[option][_OPT_FUNCTION] is INITOPT
|
||||||
|
|
||||||
def options(self):
|
def options(self):
|
||||||
"""
|
"""
|
||||||
options()
|
|
||||||
Print out a list of available widget options.
|
Print out a list of available widget options.
|
||||||
Does not include subcomponent options.
|
Does not include subcomponent options.
|
||||||
"""
|
"""
|
||||||
@ -432,7 +430,6 @@ class DirectGuiBase(PandaObject.PandaObject):
|
|||||||
|
|
||||||
def cget(self, option):
|
def cget(self, option):
|
||||||
"""
|
"""
|
||||||
cget(option)
|
|
||||||
Get current configuration setting for this option
|
Get current configuration setting for this option
|
||||||
"""
|
"""
|
||||||
# Return the value of an option, for example myWidget['font'].
|
# Return the value of an option, for example myWidget['font'].
|
||||||
@ -716,7 +713,7 @@ class DirectGuiWidget(DirectGuiBase, NodePath):
|
|||||||
# Attach button to parent and make that self
|
# Attach button to parent and make that self
|
||||||
if (parent == None):
|
if (parent == None):
|
||||||
parent = aspect2d
|
parent = aspect2d
|
||||||
self.assign(parent.attachNewNode( self.guiItem, self['sortOrder'] ) )
|
self.assign(parent.attachNewNode(self.guiItem, self['sortOrder']))
|
||||||
# Update pose to initial values
|
# Update pose to initial values
|
||||||
if self['pos']:
|
if self['pos']:
|
||||||
pos = self['pos']
|
pos = self['pos']
|
||||||
|
Loading…
x
Reference in New Issue
Block a user