예제 #1
0
    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
예제 #2
0
 def setEdit(self, vobj, mode):
     taskd = DraftGui.FacebinderTaskPanel()
     taskd.obj = vobj.Object
     taskd.update()
     Gui.Control.showDialog(taskd)
     return True