Use of PrintDialog With User-Selected File

The demo of PrintDialog.py shows me that this is just what I need in my
application without re-inventing the wheel. When I look at the demo I get the
impression that it's designed to print whatever is in the window behind it.
Is this correct?

   If I have several files stored on disk I'd like the user to be able to
select which file to print. Is there an existing modification of the
PrintDialog that includes a file selector?

Rich

···

--
Richard B. Shepard, Ph.D. | Author of "Quantifying Environmental
Applied Ecosystem Services, Inc. (TM) | Impact Assessments Using Fuzzy Logic"
<http://www.appl-ecosys.com> Voice: 503-667-4517 Fax: 503-667-8863

Rich Shepard wrote:

  The demo of PrintDialog.py shows me that this is just what I need in my
application without re-inventing the wheel. When I look at the demo I get the
impression that it's designed to print whatever is in the window behind it.
Is this correct?

In the demo, yes. In actual practice, not necessarily.

  If I have several files stored on disk I'd like the user to be able to
select which file to print. Is there an existing modification of the
PrintDialog that includes a file selector?

Printing in wxPython is accomplished by plugging in to the Print Framework, and providing a class that knows how to draw each page that is to be printed. So to do what you are wanting you would create an application that allows the user to select a file, and provides a wx.Printout class that knows how to draw each page of that file.

···

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