not working
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user