Added accept() method

This commit is contained in:
jrheinlaender 2012-11-17 20:26:25 +04:30 committed by wmayer
parent 0a98b35fea
commit 179f526cd2

View File

@ -38,7 +38,6 @@ class TaskWizardShaft:
# Shaft
shaft = 0
# Feature
sketch = 0
featureWindow = 0
def __init__(self):
@ -67,6 +66,15 @@ class TaskWizardShaft:
def getStandardButtons(self):
return int(QtGui.QDialogButtonBox.Ok)
def accept(self):
if self.table:
del self.table
if self.shaft:
del self.shaft
if self.form:
del self.form
return True
class WizardShaftGui:
def Activated(self):
FreeCADGui.Control.showDialog(TaskWizardShaft())