From 2f8be93a2b0bfe4a5fe1607a224ec4b61bf87790 Mon Sep 17 00:00:00 2001 From: Trygve Laugstøl Date: Sun, 22 May 2016 20:57:09 +0200 Subject: o Initial import. --- InitGui.py | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 InitGui.py (limited to 'InitGui.py') 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()) -- cgit v1.2.3