-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathInitGui.py
37 lines (29 loc) · 949 Bytes
/
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
# -*- coding: utf-8 -*-
# Slcr gui init module
# (c) 2001 Juergen Riegel
# License LGPL
import SlcrResources3
class SlcrWorkbench ( Workbench ):
"Slcr workbench object"
import SlcrRoot,os
Icon = os.path.dirname(SlcrRoot.__file__)+"/Resources/icons/Slic3r.svg"
MenuText = "Slic3r Tools"
ToolTip = "Slic3r Tools workbench"
def Initialize(self):
# load the module
import SlcrGui,SlcrRoot,os
commands=[
'Slcr_ExportVisible',
'Slcr_Slice',
'Slcr_SliceInfo',
'Slcr_ExportGcode'
]
self.appendToolbar('Slic3r Tools',commands)
self.appendMenu('Slic&3r Tools',commands)
FreeCADGui.addPreferencePage(
os.path.dirname(SlcrRoot.__file__)+
'/Resources/ui/slcr-prefs.ui','Slic3r Tools'
)
def GetClassName(self):
return "Gui::PythonWorkbench"
Gui.addWorkbench(SlcrWorkbench())