Import/InitGui.py
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033 """
00034 class ImportWorkbench ( Workbench ):
00035 "Import workbench object"
00036 def Activate(self):
00037 # load the module
00038 try:
00039 Log ('Loading ImportGui module')
00040 import Import
00041 import ImportGui
00042 except:
00043 Err('Cannot load ImportGui')
00044 raise
00045 def GetIcon(self):
00046 # returns an icon for the workbench
00047 return ["/* XPM */\n"
00048 "static const char *fileopen[] = {\n"
00049 "\"16 13 5 1\",\n"
00050 "\". c #040404\",\n"
00051 "\"# c #808304\",\n"
00052 "\"a c None\",\n"
00053 "\"b c #f3f704\",\n"
00054 "\"c c #f3f7f3\",\n"
00055 "\"aaaaaaaaa...aaaa\",\n"
00056 "\"aaaaaaaa.aaa.a.a\",\n"
00057 "\"aaaaaaaaaaaaa..a\",\n"
00058 "\"a...aaaaaaaa...a\",\n"
00059 "\".bcb.......aaaaa\",\n"
00060 "\".cbcbcbcbc.aaaaa\",\n"
00061 "\".bcbcbcbcb.aaaaa\",\n"
00062 "\".cbcb...........\",\n"
00063 "\".bcb.#########.a\",\n"
00064 "\".cb.#########.aa\",\n"
00065 "\".b.#########.aaa\",\n"
00066 "\"..#########.aaaa\",\n"
00067 "\"...........aaaaa\"};\n"]
00068
00069 Gui.addWorkbench("Import",ImportWorkbench())
00070 """