mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 02:42:49 -04:00
better printout of methods
This commit is contained in:
parent
c69cc5c96f
commit
e996fb620f
@ -1,7 +1,7 @@
|
|||||||
|
|
||||||
from PythonUtil import *
|
from PythonUtil import *
|
||||||
from DirectNotifyGlobal import *
|
from DirectNotifyGlobal import *
|
||||||
|
import types
|
||||||
|
|
||||||
class Messenger:
|
class Messenger:
|
||||||
|
|
||||||
@ -226,9 +226,11 @@ class Messenger:
|
|||||||
acceptorDict = self.dict[event]
|
acceptorDict = self.dict[event]
|
||||||
for object in acceptorDict.keys():
|
for object in acceptorDict.keys():
|
||||||
method, extraArgs, persistent = acceptorDict[object]
|
method, extraArgs, persistent = acceptorDict[object]
|
||||||
className = object.__class__.__name__
|
if (type(method) == types.MethodType):
|
||||||
methodName = method.__name__
|
functionName = method.im_class.__name__ + '.' + method.im_func.__name__
|
||||||
str = str + className + '.' + methodName + ' '
|
else:
|
||||||
|
functionName = method.__name__
|
||||||
|
str = str + functionName + ' '
|
||||||
str = str + '\n'
|
str = str + '\n'
|
||||||
return str
|
return str
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user