--- a/PLCOpenEditor.py Fri Aug 22 17:22:54 2008 +0200
+++ b/PLCOpenEditor.py Wed Aug 27 13:30:13 2008 +0200
@@ -1685,7 +1685,7 @@
blocktypes = self.Controler.GetBlockTypes()
if wx.Platform == '__WXMSW__':
root = self.LibraryTree.AddRoot("Block Types")
- self.TypeTree.SetPyData(root, {"type" : CATEGORY})
+ self.LibraryTree.SetPyData(root, {"type" : CATEGORY})
else:
root = self.LibraryTree.AddRoot("")
if wx.VERSION >= (2, 6, 0):
@@ -1693,7 +1693,6 @@
else:
category_item, root_cookie = self.LibraryTree.GetFirstChild(root, 0)
for category in blocktypes:
- print category["name"]
if not category_item.IsOk():
category_item = self.LibraryTree.AppendItem(root, category["name"])
if wx.Platform != '__WXMSW__':