[wxPython-dev] memory dc problem in 2.7pre

Michele Petrazzo michele.petrazzo at unipex.it
Sat Jul 22 00:58:16 PDT 2006


Christopher Barker wrote:
> Michele Petrazzo wrote:
>> Christopher Barker wrote:
>>> To use a MemoryDC, you need to select a wx.Bitmap into it:
>> 
>> Yes, my fault! This is a part of old code that worked with 2.6.x,
>> but not with new one!
> 
> Are you sure?

Yes. On my debian 3.1 unstable and default wx 2.6
(packages.debian.org/unstable/python/python-wxgtk2.6)
and on win2k with 2.6.always_the_last, it work without problems.

> a MemoryDC without a bitmap would never have been useful, even if it
> didn't crash.

Why not? I want only to know a text's size (with its font), so for me it
work like I need.

Of course, this not mean that I have to call it in a wrong manner! :)

> -Chris
> 

Michele




More information about the wxpython-dev mailing list