Binary file Images/GRAPH.png has changed
--- 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:
--- 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
--- 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)