[wxPython] wxNoRefBitmap

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[wxPython] wxNoRefBitmap

Robin Dunn
Hi all,

Just a note to let you know that it is no longer necessary to use
wxNoRefBitmap when assigning bitmaps to toolbars and such.  wxWindows is no
using reference counting internally for bitmaps and other GDI objects so we
no longer have to worry about python deleting the object before wxWindows is
done using it.

For the next release I will make wxNoRefBitmap be an alias for wxBitmap, but
until then using it will cause a memory leak so if this is a concern for you
then you should switch to using wxBitmap instead.

--
Robin Dunn
Software Craftsman
[hidden email]
http://AllDunn.com/robin/
http://AllDunn.com/wxPython/  Check it out!



_______________________________________________
wxPython-users maillist  -  [hidden email]
http://starship.python.net/mailman/listinfo/wxpython-users