mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-02 09:52:27 -04:00
added ParamObj __repr__
This commit is contained in:
parent
7029c5bc4f
commit
7e222cf09c
@ -1104,6 +1104,12 @@ class ParamObj:
|
||||
# of the param was
|
||||
return self._priorValuesStack.top()[self._curParamStack.top()]
|
||||
|
||||
def __repr__(self):
|
||||
argStr = ''
|
||||
for param in self.ParamSet.getParams():
|
||||
argStr += '%s=%s,' % (param, getSetter(self, param, 'get')())
|
||||
return '%s(%s)' % (self.__class__.__name__, argStr)
|
||||
|
||||
def bound(value, bound1, bound2):
|
||||
"""
|
||||
returns value if value is between bound1 and bound2
|
||||
|
Loading…
x
Reference in New Issue
Block a user