printer preview in wxPython 2.9.3 is not working

I have problems with printer preview (wx.version: 2.9.3.1 msw (classic)) but it worked fine in wxPython 2.9.1.1

The demo code of wxPython raises the following error:

Traceback (most recent call last):

File “C:\Program Files\wxPython2.9 Docs and Demos\demo\PrintFramework.py”, line 64, in OnPrintPage

(w, h) = dc.GetSizeTuple()

AttributeError: ‘PySwigObject’ object has no attribute ‘GetSizeTuple’

I was developing a program and it was working fine until I upgrade wxPython to 2.9.3.

Anyone know what happens? and how solve the problem

thanks

This bug has already been fixed for 2.9.4.

···

On 4/30/12 8:39 AM, Hernan B. wrote:

I have problems with printer preview (wx.version: 2.9.3.1 msw (classic))
but it worked fine in wxPython 2.9.1.1

The demo code of wxPython raises the following error:

Traceback (most recent call last):
File "C:\Program Files\wxPython2.9 Docs and
Demos\demo\PrintFramework.py", line 64, in OnPrintPage
(w, h) = dc.GetSizeTuple()
AttributeError: 'PySwigObject' object has no attribute 'GetSizeTuple'

I was developing a program and it was working fine until I upgrade
wxPython to 2.9.3.
Anyone know what happens? and how solve the problem

--
Robin Dunn
Software Craftsman