# HG changeset patch
# User greg
# Date 1204101782 -3600
# Node ID ff860001a377a7c6b8448f09b7c352ed0d4f575c
# Parent  9ffdac9cf609900674a70e1a640c609c65db10b5
add wx.icon in init for class beremiz class

diff -r 9ffdac9cf609 -r ff860001a377 Beremiz.py
--- a/Beremiz.py	Tue Feb 26 17:14:06 2008 +0100
+++ b/Beremiz.py	Wed Feb 27 09:43:02 2008 +0100
@@ -338,6 +338,13 @@
         
         self.Log = LogPseudoFile(self.LogConsole)
         
+        # 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)
+        else:
+            icon = wx.Icon(os.path.join(CWD,"brz.png"),wx.BITMAP_TYPE_PNG)
+        self.SetIcon(icon)
+        
         self.PluginRoot = PluginsRoot(self)
         self.DisableEvents = False
         
@@ -1288,12 +1295,5 @@
     
     frame = Beremiz(None, projectOpen)
     
-    # Add beremiz's icon in top left corner of the frame
-    if wx.Platform == '__WXMSW__':
-        winicon = wx.Icon(os.path.join(CWD,"brz.ico"),wx.BITMAP_TYPE_ICO)
-        frame.SetIcon(winicon)
-    else:
-		linicon = wx.Icon(os.path.join(CWD,"brz.png"),wx.BITMAP_TYPE_PNG)
-		frame.SetIcon(linicon)
     frame.Show()
     app.MainLoop()