equal
deleted
inserted
replaced
314 self.ModeSolo = nodelist == None |
314 self.ModeSolo = nodelist == None |
315 self._init_ctrls(parent) |
315 self._init_ctrls(parent) |
316 self.HtmlFrameOpened = [] |
316 self.HtmlFrameOpened = [] |
317 self.BusId = None |
317 self.BusId = None |
318 |
318 |
319 # Add beremiz's icon in top left corner of the frame |
319 icon = wx.Icon(os.path.join(ScriptDirectory,"networkedit.ico"),wx.BITMAP_TYPE_ICO) |
320 if wx.Platform == '__WXMSW__': |
|
321 icon = wx.Icon(os.path.join(ScriptDirectory,"networkedit.ico"),wx.BITMAP_TYPE_ICO) |
|
322 else: |
|
323 icon = wx.Icon(os.path.join(ScriptDirectory,"networkedit.png"),wx.BITMAP_TYPE_PNG) |
|
324 self.SetIcon(icon) |
320 self.SetIcon(icon) |
325 |
321 |
326 if self.ModeSolo: |
322 if self.ModeSolo: |
327 self.Manager = NodeManager() |
323 self.Manager = NodeManager() |
328 if projectOpen: |
324 if projectOpen: |
329 self.NodeList = NodeList(self.Manager) |
325 self.NodeList = NodeList(self.Manager) |
330 result = self.NodeList.LoadProject(projectOpen) |
326 result = self.NodeList.LoadProject(projectOpen) |