Printing Framework

Mark Erbaugh wrote:

I think I've almost got printing working under wxGTK.

I've modified the example from Chapter 17 of wxPIA. I save the data
from a call to PrintSetupDialog and then call printer.Print with that
data, telling it to print without presenting the PrintSetup dialog.
That seems to work, but if I call PrintSetupDialog again with the data,
I get a segmentation fault. I had this problem with the data from the
PageSetupDialog before and it was because I was holding on to data from
the dialog and the data was destroyed when the dialog was destroyed. I
fixed that by making a copy of the data before destryoning the dialog
and saving the copy.

I am trying the same thing with the data passed to and retrieved from
printer.Print. If I comment out the call the printer.Print, I don't get
the segmentation fault.

Can you use a debugger (or even just print statements) to find out which line of Python code the segfault is happening on?

ยทยทยท

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!