mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 10:22:45 -04:00
fixed windows line endings
This commit is contained in:
parent
6962cfeb87
commit
95df2fd686
@ -25,17 +25,17 @@ def registerInTypeMap(pythonClass):
|
|||||||
WrapperClassMap[typeIndex] = pythonClass
|
WrapperClassMap[typeIndex] = pythonClass
|
||||||
|
|
||||||
|
|
||||||
def funcToMethod(func,clas,method_name=None):
|
def funcToMethod(func,clas,method_name=None):
|
||||||
"""Adds func to class so it is an accessible method; use method_name to specify the name to be used for calling the method.
|
"""Adds func to class so it is an accessible method; use method_name to specify the name to be used for calling the method.
|
||||||
The new method is accessible to any instance immediately."""
|
The new method is accessible to any instance immediately."""
|
||||||
func.im_class=clas
|
func.im_class=clas
|
||||||
func.im_func=func
|
func.im_func=func
|
||||||
func.im_self=None
|
func.im_self=None
|
||||||
if not method_name:
|
if not method_name:
|
||||||
clas.__dict__[method_name]=func
|
clas.__dict__[method_name]=func
|
||||||
else:
|
else:
|
||||||
clas.__dict__[func.__name__]=func
|
clas.__dict__[func.__name__]=func
|
||||||
|
|
||||||
|
|
||||||
def FFIInstance(classdef, this = 0, userManagesMemory = 0 ):
|
def FFIInstance(classdef, this = 0, userManagesMemory = 0 ):
|
||||||
answer = instance(classdef)
|
answer = instance(classdef)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user