--- a/Beremiz.py Wed Feb 27 09:43:02 2008 +0100
+++ b/Beremiz.py Wed Feb 27 14:36:05 2008 +0100
@@ -24,15 +24,44 @@
__version__ = "$Revision$"
+import os, sys, getopt, wx +CWD = os.path.split(os.path.realpath(__file__))[0]
+if __name__ == '__main__': + print "\nUsage of Beremiz.py :" + print "\n %s [Projectpath]\n"%sys.argv[0] + opts, args = getopt.getopt(sys.argv[1:], "h", ["help"]) + except getopt.GetoptError: + # print help information and exit: + if o in ("-h", "--help"): + wx.InitAllImageHandlers() + bmp = wx.Image(os.path.join(CWD,"images","splash.png")).ConvertToBitmap() + splash=wx.SplashScreen(bmp,wx.SPLASH_CENTRE_ON_SCREEN, 1000, None)
-import os, re, platform, sys, time, traceback, getopt, commands
+import wx.lib.buttons, wx.lib.statbmp +import types, time, re, platform, time, traceback, commands from plugger import PluginsRoot
@@ -55,7 +84,6 @@
-CWD = os.path.split(os.path.realpath(__file__))[0]
# Some helpers to tweak GenBitmapTextButtons
# TODO: declare customized classes instead.
@@ -340,9 +368,9 @@
# Add beremiz's icon in top left corner of the frame
if wx.Platform == '__WXMSW__':
- icon = wx.Icon(os.path.join(CWD,"brz.ico"),wx.BITMAP_TYPE_ICO)
+ icon = wx.Icon(os.path.join(CWD,"images","brz.ico"),wx.BITMAP_TYPE_ICO) - icon = wx.Icon(os.path.join(CWD,"brz.png"),wx.BITMAP_TYPE_PNG)
+ icon = wx.Icon(os.path.join(CWD,"images","brz.png"),wx.BITMAP_TYPE_PNG) self.PluginRoot = PluginsRoot(self)
@@ -1263,37 +1291,11 @@
sys.excepthook = handle_exception
if __name__ == '__main__':
- print "\nUsage of Beremiz.py :"
- print "\n %s [Projectpath]\n"%sys.argv[0]
- opts, args = getopt.getopt(sys.argv[1:], "h", ["help"])
- except getopt.GetoptError:
- # print help information and exit:
- if o in ("-h", "--help"):
- wx.InitAllImageHandlers()
# Install a exception handle for bug reports
AddExceptHook(os.getcwd(),__version__)
frame = Beremiz(None, projectOpen)