Bug on wx2.6 with PartsOpened fixed
authorlbessard
Mon, 23 Jun 2008 18:21:27 +0200
changeset 164 072e81cc65fe
parent 163 482ca562d414
child 165 f9c6c9e36725
Bug on wx2.6 with PartsOpened fixed
plugins/c_ext/CFileEditor.py
--- a/plugins/c_ext/CFileEditor.py	Mon Jun 23 17:52:21 2008 +0200
+++ b/plugins/c_ext/CFileEditor.py	Mon Jun 23 18:21:27 2008 +0200
@@ -828,7 +828,7 @@
                "Publish"]
 
 [ID_CFILEEDITOR, ID_CFILEEDITORMAINSPLITTER, 
- ID_CFILEEDITORCFILETREE, CFILEEDITORPARTSOPENED, 
+ ID_CFILEEDITORCFILETREE, ID_CFILEEDITORPARTSOPENED, 
 ] = [wx.NewId() for _init_ctrls in range(4)]
 
 class CFileEditor(base_class):
@@ -910,9 +910,9 @@
                   0), size=wx.Size(0, 0), style=0)
             if wx.VERSION >= (2, 6, 0):
                 self.PartsOpened.Bind(wx.EVT_NOTEBOOK_PAGE_CHANGED,
-                    self.OnPartSelectedChanged, id=CFILEEDITORPARTSOPENED)
-            else:
-                wx.EVT_NOTEBOOK_PAGE_CHANGED(self.PartsOpened, CFILEEDITORPARTSOPENED,
+                    self.OnPartSelectedChanged, id=ID_CFILEEDITORPARTSOPENED)
+            else:
+                wx.EVT_NOTEBOOK_PAGE_CHANGED(self.PartsOpened, ID_CFILEEDITORPARTSOPENED,
                     self.OnPartSelectedChanged)
             
             self.MainSplitter.SplitVertically(self.ProjectTree, self.PartsOpened, 200)