# HG changeset patch
# User greg
# Date 1204107343 -3600
# Node ID f2920812471e268c655a5ee44f37f0d351f27434
# Parent  f85552acc2bf88c9e209ee449dc00d46dd44f211
add icon support in init

diff -r f85552acc2bf -r f2920812471e objdictgen/networkedit.py
--- a/objdictgen/networkedit.py	Tue Feb 26 10:26:00 2008 +0100
+++ b/objdictgen/networkedit.py	Wed Feb 27 11:15:43 2008 +0100
@@ -316,6 +316,13 @@
         self.HtmlFrameOpened = []
         self.BusId = None
         
+        # Add beremiz's icon in top left corner of the frame
+        if wx.Platform == '__WXMSW__':
+            icon = wx.Icon(os.path.join(ScriptDirectory,"networkedit.ico"),wx.BITMAP_TYPE_ICO)
+        else:
+            icon = wx.Icon(os.path.join(ScriptDirectory,"networkedit.png"),wx.BITMAP_TYPE_PNG)
+        self.SetIcon(icon)
+        
         if self.ModeSolo:
             self.Manager = NodeManager()
             if projectOpen:
diff -r f85552acc2bf -r f2920812471e objdictgen/objdictedit.py
--- a/objdictgen/objdictedit.py	Tue Feb 26 10:26:00 2008 +0100
+++ b/objdictgen/objdictedit.py	Wed Feb 27 11:15:43 2008 +0100
@@ -302,6 +302,13 @@
         self.HtmlFrameOpened = []
         self.ModeSolo = True
         
+        # Add beremiz's icon in top left corner of the frame
+        if wx.Platform == '__WXMSW__':
+            icon = wx.Icon(os.path.join(ScriptDirectory,"objdictedit.ico"),wx.BITMAP_TYPE_ICO)
+        else:
+            icon = wx.Icon(os.path.join(ScriptDirectory,"objdictedit.png"),wx.BITMAP_TYPE_PNG)
+        self.SetIcon(icon)
+        
         self.Manager = NodeManager()
         for filepath in filesOpen:
             result = self.Manager.OpenFileInCurrent(filepath)