A Problem with wxPrint preview and LANDSCAPE mode

Hello:

I am trying to get the printout output from my wxPython program working, but I am having a problem with the print preview with respect to my LANDSCAPE document.

Background: I am using wxPython version 3.0.2.0 gtk2 (classic) on openSUSE 13.2, which I build myself using their open build service. Normally version 3.0.1 comes with this distribution, I believe. I had the same problem with both versions.

The problem demonstrated in the attached simple script is with the “Print” dialog, When the “Print” push button is pressed, a 20-line landscape document is created and the “Print” dialog is called to print it.

It prints just fine (i.e. in landscape mode), but the Preview has problems. First among them is that it is in Portrait orientation, even though the text is in Landscape orientation. So the preview appears sideways.

Is there some setting I am missing? Or is this a known bug?

Thank you for any help.

printer.py (3.31 KB)

···


Lee Duncan