-
Notifications
You must be signed in to change notification settings - Fork 39
/
Copy pathInitGui.py
46 lines (31 loc) · 1.4 KB
/
InitGui.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# (c) 2014-2025 CadQuery Developers
"""
CadQuery GUI init module for FreeCAD
This adds a workbench with a scripting editor to FreeCAD's GUI.
"""
import Part, FreeCAD, FreeCADGui
from CQGui.Command import (CadQueryHelp,
CadQueryClearOutput,
CadQueryStableInstall,
CadQueryUnstableInstall,
Build123DInstall)
class CadQueryWorkbench (Workbench):
"""CadQuery workbench for FreeCAD"""
MenuText = "CadQuery"
ToolTip = "CadQuery workbench"
def Initialize(self):
self.appendMenu('CadQuery', ['CadQueryClearOutput'])
self.appendMenu(['CadQuery', 'Install'], ["CadQueryStableInstall",
"CadQueryUnstableInstall",
"Build123DInstall"])
self.appendMenu('CadQuery', ['CadQueryHelp'])
def Activated(self):
pass
def Deactivated(self):
pass
FreeCADGui.addCommand('CadQueryStableInstall', CadQueryStableInstall())
FreeCADGui.addCommand('CadQueryUnstableInstall', CadQueryUnstableInstall())
FreeCADGui.addCommand('Build123DInstall', Build123DInstall())
FreeCADGui.addCommand('CadQueryClearOutput', CadQueryClearOutput())
FreeCADGui.addCommand('CadQueryHelp', CadQueryHelp())
FreeCADGui.addWorkbench(CadQueryWorkbench())