# HG changeset patch # User Laurent Bessard # Date 1340877807 -7200 # Node ID 0183a66eddf9619b8fbea0354450e21e205fdd44 # Parent 86a2d17866842e7adbcbc38d46edbc1a7cdee773 Fix various bugs diff -r 86a2d1786684 -r 0183a66eddf9 Images/GRAPH.png Binary file Images/GRAPH.png has changed diff -r 86a2d1786684 -r 0183a66eddf9 PLCOpenEditor.py --- a/PLCOpenEditor.py Thu Jun 28 12:03:12 2012 +0200 +++ b/PLCOpenEditor.py Thu Jun 28 12:03:27 2012 +0200 @@ -346,7 +346,7 @@ split = None for idx, tab in enumerate(tabs): if len(tab["pages"]) == 0: - raise "Not possible" + raise ValueError, "Not possible" if tab["size"][0] == rect.width: if tab["pos"][1] == rect.y: split = (wx.TOP, float(tab["size"][1]) / float(rect.height)) @@ -1626,7 +1626,7 @@ if (item_infos["name"].split(":")[-1].strip(), item_infos["type"]) == items[0]: if len(items) == 1: self.SelectedItem = item - self.ProjectTree.SelectItem(item) + wx.CallAfter(self.ProjectTree.SelectItem, item) wx.CallAfter(self.ResetSelectedItem) return True else: diff -r 86a2d1786684 -r 0183a66eddf9 controls/EditorPanel.py --- a/controls/EditorPanel.py Thu Jun 28 12:03:12 2012 +0200 +++ b/controls/EditorPanel.py Thu Jun 28 12:03:27 2012 +0200 @@ -92,7 +92,7 @@ pass def IsViewing(self, tagname): - return self.TagName == tagname + return self.GetTagName() == tagname def IsDebugging(self): return self.Debug diff -r 86a2d1786684 -r 0183a66eddf9 dialogs/SFCStepDialog.py --- a/dialogs/SFCStepDialog.py Thu Jun 28 12:03:12 2012 +0200 +++ b/dialogs/SFCStepDialog.py Thu Jun 28 12:03:27 2012 +0200 @@ -33,7 +33,7 @@ def __init__(self, parent, controller, initial = False): wx.Dialog.__init__(self, parent, title=_('Edit Step'), - size=wx.Size(400, 250), style=wx.DEFAULT_DIALOG_STYLE) + size=wx.Size(400, 250)) main_sizer = wx.FlexGridSizer(cols=1, hgap=0, rows=2, vgap=10) main_sizer.AddGrowableCol(0)