Test on wx version changed to test on platform
authorlbessard
Tue, 02 Oct 2007 18:05:36 +0200
changeset 60 e9667bec7f00
parent 59 b6ff896ff58b
child 61 a20fb174f46e
Test on wx version changed to test on platform
Beremiz.py
--- a/Beremiz.py	Tue Oct 02 18:02:32 2007 +0200
+++ b/Beremiz.py	Tue Oct 02 18:05:36 2007 +0200
@@ -391,7 +391,7 @@
         for values in infos["values"]:
             if not item.IsOk():
                 item = self.PluginTree.AppendItem(root, "")
-                if wx.VERSION < (2, 7, 0):
+                if wx.Platform != '__WXMSW__':
                     item, root_cookie = self.PluginTree.GetNextChild(root, root_cookie)
             self.GenerateTreeBranch(item, values)
             item, root_cookie = self.PluginTree.GetNextChild(root, root_cookie)