[wxPython-users] ANN: wxPython 2.8.7.1

Robin Dunn robin at alldunn.com
Sat Dec 1 12:12:57 PST 2007


Marco De Felice wrote:
> There's a problem with this release:
> 
> panel = wx.Panel()
> I put put the panel inside a wx.Notebook tab, then when removing it with
> wx.Notebook.RemovePage(panel) I get the following error:
> 
> return _controls_.BookCtrlBase_RemovePage(*args, **kwargs)
> TypeError: in method 'BookCtrlBase_RemovePage', expected argument 2 of
> type 'size_t'
> 
> This method worked for me with all the previous wxpython versions, so it
> could be a bug?!

As you've discovered the bug was in the previous version and your code 
had a bug that fell through the cracks because of it.  The problem was 
in the wxPython code that converts from Python objects to C++ integer 
types, it was not passing on the exception if the type of the object 
passed was not convertible to an integer, but would just return zero 
instead.

-- 
Robin Dunn
Software Craftsman
http://wxPython.org  Java give you jitters?  Relax with wxPython!





More information about the wxpython-users mailing list