File size: 1,459 Bytes
985c397
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
47
48
49
50
51
52
53
# SPDX-License-Identifier: LGPL-2.1-or-later

# TemplatePyMod gui init module  
# (c) 2007 Juergen Riegel LGPL
#


class TemplatePyModWorkbench ( Workbench ):
	"Test workbench object"
	Icon = """

			/* XPM */

			static const char *test_icon[]={

			"16 16 2 1",

			"a c #000000",

			". c None",

			"................",

			"................",

			"..############..",

			"..############..",

			"..############..",

			"......####......",

			"......####......",

			"......####......",

			"......####......",

			"......####......",

			"......####......",

			"......####......",

			"......####......",

			"......####......",

			"................",

			"................"};

			"""
	MenuText = "Python sandbox"
	ToolTip = "Python template workbench"
	
	def Initialize(self):
		import Commands

		self.appendToolbar("TemplateTools",["TemplatePyMod_Cmd1","TemplatePyMod_Cmd2","TemplatePyMod_Cmd3","TemplatePyMod_Cmd4","TemplatePyMod_Cmd5"])

		menu = ["ModulePy &Commands","PyModuleCommands"]
		list = ["TemplatePyMod_Cmd1","TemplatePyMod_Cmd2","TemplatePyMod_Cmd3","TemplatePyMod_Cmd5","TemplatePyMod_Cmd6"]
		self.appendCommandbar("PyModuleCommands",list)
		self.appendMenu(menu,list)

		Log ('Loading TemplatePyMod module... done\n')
	def Activated(self):
		Msg("TemplatePyModWorkbench::Activated()\n")
	def Deactivated(self):
		Msg("TemplatePyModWorkbench::Deactivated()\n")

Gui.addWorkbench(TemplatePyModWorkbench)