I’m trying to use the GetCurrentPage() method from wx.aui.AUINotebook, with this platform and version: WinXP, Python 2.7.2, wxPython 2.9.3. When I call it, I get the error:
AttributeError: ‘AuiNotebook’ object has no attribute ‘GetCurrentPage’
But if I go to the API (wxWidgets version*), it says: Since**:** 2.9.3.
I thought if wxPython and wxWidgets were both 2.9.3, they’d have the same methods. Maybe I’m misunderstanding something.
I'm trying to use the GetCurrentPage() method from wx.aui.AUINotebook,
with this platform and version: WinXP, Python 2.7.2, wxPython 2.9.3.
When I call it, I get the error:
AttributeError: 'AuiNotebook' object has no attribute 'GetCurrentPage'
But if I go to the API (wxWidgets version*), it says: Since*: *2.9.3.
I thought if wxPython and wxWidgets were both 2.9.3, they'd have the
same methods. Maybe I'm misunderstanding something.
That depends on when in the 2.9.3.x history that it was added, and which wxPython you have. That method is in my copy of 2.9.3.1:
That depends on when in the 2.9.3.x history that it was added, and which wxPython you have. That method is in my copy of 2.9.3.1:
Sorry, complete false alarm: I have 2.9.3.1 as well and it is there. The problem was I have a dual install with 2.8.10 as well and though Boa Constructor was running as 2.9.3, my application was somehow running with 2.8.10. I used wxversion.select(‘2.9’) and it worked fine.