60 splash=wx.SplashScreen(bmp,wx.SPLASH_CENTRE_ON_SCREEN, 1000, None) |
60 splash=wx.SplashScreen(bmp,wx.SPLASH_CENTRE_ON_SCREEN, 1000, None) |
61 wx.Yield() |
61 wx.Yield() |
62 |
62 |
63 import wx.lib.buttons, wx.lib.statbmp , wx.html |
63 import wx.lib.buttons, wx.lib.statbmp , wx.html |
64 import types, time, re, platform, time, traceback, commands |
64 import types, time, re, platform, time, traceback, commands |
65 import docclass.docpdf |
|
66 |
|
67 from plugger import PluginsRoot |
65 from plugger import PluginsRoot |
68 |
66 |
69 base_folder = os.path.split(sys.path[0])[0] |
67 base_folder = os.path.split(sys.path[0])[0] |
70 CanFestivalPath = os.path.join(base_folder, "CanFestival-3") |
68 CanFestivalPath = os.path.join(base_folder, "CanFestival-3") |
71 sys.path.append(os.path.join(CanFestivalPath, "objdictgen")) |
69 sys.path.append(os.path.join(CanFestivalPath, "objdictgen")) |
|
70 sys.path.append(os.path.join(base_folder, "docutils")) |
72 from objdictedit import * |
71 from objdictedit import * |
73 |
72 from docpdf import * |
74 |
73 |
75 SCROLLBAR_UNIT = 10 |
74 SCROLLBAR_UNIT = 10 |
76 WINDOW_COLOUR = wx.Colour(240,240,240) |
75 WINDOW_COLOUR = wx.Colour(240,240,240) |
77 TITLE_COLOUR = wx.Colour(200,200,220) |
76 TITLE_COLOUR = wx.Colour(200,200,220) |
78 CHANGED_TITLE_COLOUR = wx.Colour(220,200,220) |
77 CHANGED_TITLE_COLOUR = wx.Colour(220,200,220) |
1199 |
1198 |
1200 def OnSaveLogMenu(self, event): |
1199 def OnSaveLogMenu(self, event): |
1201 event.Skip() |
1200 event.Skip() |
1202 |
1201 |
1203 def OnBeremizMenu(self, event): |
1202 def OnBeremizMenu(self, event): |
1204 docclass.docpdf.open_pdf(os.path.join(CWD, "doc", "manual_beremiz.pdf")) |
1203 open_pdf(os.path.join(CWD, "doc", "manual_beremiz.pdf")) |
1205 event.Skip() |
1204 event.Skip() |
1206 |
1205 |
1207 def OnAboutMenu(self, event): |
1206 def OnAboutMenu(self, event): |
1208 about_html = objdictedit(self) |
1207 about_html = objdictedit(self) |
1209 about_html.OpenHtmlFrame("About Beremiz", os.path.join(CWD, "doc","about.html"), wx.Size(550, 500)) |
1208 about_html.OpenHtmlFrame("About Beremiz", os.path.join(CWD, "doc","about.html"), wx.Size(550, 500)) |