aboutsummaryrefslogtreecommitdiff
path: root/InitGui.py
diff options
context:
space:
mode:
Diffstat (limited to 'InitGui.py')
-rw-r--r--InitGui.py27
1 files changed, 27 insertions, 0 deletions
diff --git a/InitGui.py b/InitGui.py
new file mode 100644
index 0000000..3ca7ce4
--- /dev/null
+++ b/InitGui.py
@@ -0,0 +1,27 @@
+print "GUI: Caser loaded"
+
+class BoxerWorkbench (Workbench):
+
+ MenuText = "Boxer"
+ ToolTip = "Box Maker"
+# Icon =
+
+ def Initialize(self):
+ import Boxer
+ self.list = ["BoxerMakeBox", "BoxerRemoveBox"]
+ self.appendToolbar("Boxer Commands", self.list)
+
+ def Activated(self):
+ return
+
+ def Deactivated(self):
+ return
+
+ def ContextMenu(self, recipient):
+ # "recipient" will be either "view" or "tree"
+ self.appendContextMenu("Boxer", self.list)
+
+ def GetClassName(self):
+ return "Gui::PythonWorkbench"
+
+Gui.addWorkbench(BoxerWorkbench())