add icon support in init
authorgreg
Wed, 27 Feb 2008 11:14:26 +0100
changeset 176 18af41faafd1
parent 175 cc78572dfbbc
child 177 a3f6670949ba
add icon support in init
PLCOpenEditor.py
--- a/PLCOpenEditor.py	Wed Feb 27 11:12:28 2008 +0100
+++ b/PLCOpenEditor.py	Wed Feb 27 11:14:26 2008 +0100
@@ -413,6 +413,13 @@
         
         self._init_ctrls(parent)
         
+         # Add beremiz's icon in top left corner of the frame
+        if wx.Platform == '__WXMSW__': 
+            icon = wx.Icon(os.path.join(CWD,"poe.ico"),wx.BITMAP_TYPE_ICO)
+        else:
+            icon = wx.Icon(os.path.join(CWD,"poe.png"),wx.BITMAP_TYPE_PNG)
+        self.SetIcon(icon)
+        
         if wx.Platform != '__WXMSW__':
             self.TreeImageList = wx.ImageList(16, 16)
             for language in LANGUAGES: