Skip to content

Commit

Permalink
function must return tuple, fix #29
Browse files Browse the repository at this point in the history
  • Loading branch information
j-levy committed Jun 17, 2021
1 parent 2f88b97 commit f8717ee
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/openalea/lpy/gui/objectpanel.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,8 @@ def getEditedObject(self):
""" used by panel. ask for object edition to start. Use getEditor and setObjectToEditor """
if not self.editedobjectid is None:
return self.manager.retrieveObjectFromEditor(self.editor),self.editedobjectid
else:
return None, None #function must always return a tuple

def endEditionEvent(self):
""" called when closing editor. """
Expand Down

0 comments on commit f8717ee

Please sign in to comment.