-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathInitGui.py
29 lines (23 loc) · 881 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
class MachinekitWorkbench(Workbench):
'''Registration and loading of the Machinekit workbench'''
import machinekit
Icon = machinekit.FileResource('machinekiticon.svg')
MenuText = "Machinekit"
ToolTip = "Workbench to interact with machinkit controlling a CNC"
def Initialize(self):
import MachinekitPreferences
MachinekitPreferences.Setup()
import MachinekitCommands
MachinekitCommands.SetupToolbar(self)
MachinekitCommands.SetupMenu(self)
def Activated(self):
import MachinekitCommands
MachinekitCommands.Activated()
def Deactivated(self):
import MachinekitCommands
MachinekitCommands.Deactivated()
Gui.addWorkbench(MachinekitWorkbench)
import MachinekitPreferences
if MachinekitPreferences.startOnLoad():
import MachinekitCommands
MachinekitCommands.Activated()