def setEdit(self, vobj, mode): if mode != 0: return None import DraftGui # Moving this to the top of the file results in a circular import. taskd = DraftGui.FacebinderTaskPanel() taskd.obj = vobj.Object taskd.update() Gui.Control.showDialog(taskd) return True
def setEdit(self, vobj, mode): taskd = DraftGui.FacebinderTaskPanel() taskd.obj = vobj.Object taskd.update() Gui.Control.showDialog(taskd) return True