[wxPython-dev] 20070802 test build uploaded

Mike Rooney mxr at qvii.com
Fri Aug 3 13:02:45 PDT 2007


Robin Dunn wrote:
> Adding index() is on my ToDo list.  I'll give it a try today or tomorrow.

Awesome!

> I think the problem with wx.SizerItem is that it is not OOR sensitive. 
> In other words I'm not saving a reference to the Python proxy object 
> in the C++ object, so when SWIG needs to give you a proxy for the C++ 
> object it creates a new one.  So doing Python-level compares results 
> in comparing two different Python objects that happen to be proxies 
> for the same C++ object, and since there is no __cmp__ magic methods 
> it just checks if you are looking at the same object and then fails.  
> I'll give this some more thought and see if there's an easy way to 
> make this work better.


Ahh...thanks for the explanation. That explains the issues I was having 
with them. Good to know the other lists behave as expected. Now that I 
understand the underlying issue I will probably run into less problems. 
Especially if I have an 'index' method on the SizerItemList.

Okay, thanks for all your great work!

- Mike





More information about the wxpython-dev mailing list