commit-gnue
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[gnue] r7749 - trunk/gnue-designer/src/base/tools


From: btami
Subject: [gnue] r7749 - trunk/gnue-designer/src/base/tools
Date: Fri, 22 Jul 2005 12:43:58 -0500 (CDT)

Author: btami
Date: 2005-07-22 12:43:57 -0500 (Fri, 22 Jul 2005)
New Revision: 7749

Modified:
   trunk/gnue-designer/src/base/tools/SchemaNavigator.py
Log:
wx 2.6 fix

Modified: trunk/gnue-designer/src/base/tools/SchemaNavigator.py
===================================================================
--- trunk/gnue-designer/src/base/tools/SchemaNavigator.py       2005-07-22 
17:20:09 UTC (rev 7748)
+++ trunk/gnue-designer/src/base/tools/SchemaNavigator.py       2005-07-22 
17:43:57 UTC (rev 7749)
@@ -50,6 +50,7 @@
 import sys, os, cPickle, traceback, StringIO, string, types
 from wxPython.wx import *
 from wxPython.gizmos import *
+from wxPython.wx import __version__ as wxversion
 from gnue.common.apps import GDebug
 from gnue.common.datasources import GDataSource
 from gnue.common.apps import RuntimeSettings
@@ -185,7 +186,10 @@
         if not table.expanded:
           table.expand()
         cookie = 0
-        child, cookie = self.tree.GetFirstChild(table.node, cookie)
+        if wxversion[:3] == '2.6':
+          child, cookie = self.tree.GetFirstChild(table.node)
+        else:
+          child, cookie = self.tree.GetFirstChild(table.node, cookie)
         while child.IsOk():
           fields.append(self.__addField(self.tree.GetPyData(child)))
           child, cookie = self.tree.GetNextChild(table.node, cookie)





reply via email to

[Prev in Thread] Current Thread [Next in Thread]