# HG changeset patch
# User greg
# Date 1204107266 -3600
# Node ID 18af41faafd1fb25f98605813ad2c38b48ac39be
# Parent  cc78572dfbbca49ed489689e0ec8f395997b2227
add icon support in init

diff -r cc78572dfbbc -r 18af41faafd1 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: