You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I believe this one-line change (plus an added import) is all that is required for Python3 compatability. The second to last line in the Collection class is the only change, but it requires the collections module.
import collections
...
class _Collection(_Call):
"""Base class to expose entities methods to main object."""
def __init__(self,entities=[]):
self.entities=copy.copy(entities)
#link entities methods to drawing
for attr in dir(self.entities):
if attr[0]!='_':
attrObject=getattr(self.entities,attr)
if isinstance(attrObject, collections.Callable):
setattr(self,attr,attrObject)
The text was updated successfully, but these errors were encountered:
I believe this one-line change (plus an added import) is all that is required for Python3 compatability. The second to last line in the Collection class is the only change, but it requires the collections module.
The text was updated successfully, but these errors were encountered: