Bug on Windows with LibraryTree fixed
authorlbessard
Wed, 27 Aug 2008 13:30:13 +0200
changeset 240 714000906db1
parent 239 d12779e971bd
child 241 64e584348a5b
Bug on Windows with LibraryTree fixed
PLCOpenEditor.py
--- 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__':