not working

This commit is contained in:
looooo
2015-06-25 09:45:12 +02:00
parent 6abbeb1fef
commit 4c7f5410b0
2 changed files with 3 additions and 5 deletions

View File

@@ -1,7 +1,7 @@
#!/usr/lib/python
from gearfunc._involute_tooth import involute_rack, involute_tooth
from gearfunc._cycloide_tooth import cycloide_tooth
from gearfunc._bevel_tooth import bevel_tooth
from freecad_gear.gearfunc._involute_tooth import involute_rack, involute_tooth
from freecad_gear.gearfunc._cycloide_tooth import cycloide_tooth
from freecad_gear.gearfunc._bevel_tooth import bevel_tooth
import freecad_gear.freecad

View File

@@ -105,11 +105,9 @@ class gearToolBox(object):
self.checkDocument()
def checkDocument(self, *args):
print("hello")
enable = False
if App.ActiveDocument:
enable = True
print(App.ActiveDocument)
for action in [self.involuteGearAction, self.involuteRackAction,
self.bevelGearAction, self.cycloidGearAction]:
if action: