I've read the wPIA chapter on printing, ran a Google search, and looked at
the wiki and demo of PrintDialog.py and PrintFramework.py without grokking
how to apply it to our model.
The application is not a text or graphics editor. There are a defined
number of reports to be printed; for example, one that shows all the model
parameters as selected from database tables. I have a small wx.StaticBox()
on the main notebook page that I would like to use to display the reports.
The PrintDialog() allows the user to select file or printer, but not to
the screen (yes, the book has an example function for this.)
OnPreparePrint() is the first method I need to completely understand in
the context of our model. Is there a reference of its use in a similar
application from which I can learn? I'd like to see an example other than
that in the book to help me better grasp what's involved.
All pointers appreciated.
Rich
···
--
Richard B. Shepard, Ph.D. | The Environmental Permitting
Applied Ecosystem Services, Inc. | Accelerator(TM)
<http://www.appl-ecosys.com> Voice: 503-667-4517 Fax: 503-667-8863
Is there a reference of its use in a similar
application from which I can learn? I'd like to see an example other than
that in the book to help me better grasp what's involved.
I found the printing code in wxPyPlot in wx.lib helped be grok wxPrinting...
-Chris
···
--
Christopher Barker, Ph.D.
Oceanographer
Emergency Response Division
NOAA/NOS/OR&R (206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329 fax
Seattle, WA 98115 (206) 526-6317 main reception
Thanks, Chris. I have PyPlot.py in the ../wxPython-2.6.1.0/demo directory.
I think that's what I'm seeking.
Rich
···
On Mon, 12 Feb 2007, Christopher Barker wrote:
I found the printing code in wxPyPlot in wx.lib helped be grok
wxPrinting...
--
Richard B. Shepard, Ph.D. | The Environmental Permitting
Applied Ecosystem Services, Inc. | Accelerator(TM)
<http://www.appl-ecosys.com> Voice: 503-667-4517 Fax: 503-667-8863
Actually, I do not have wxPyPlot here. The file in the demo directory
calls the one installed. But, despite Gordon's assertion that it's a part of
the standard wxPython distribution, I cannot locate it on my system. The
closest I come is /usr/lib/python2.4/site-packages/wxPlotCanvas.py, which
Gordon wrote was the base from which wxPyPlot takes off.
I've tried different forms of the name but just cannot find it. Anyone
know where it might be on a linux system with Python-2.4 and
wxPython-2.8.0.1?
Rich
···
On Mon, 12 Feb 2007, Rich Shepard wrote:
On Mon, 12 Feb 2007, Christopher Barker wrote:
I found the printing code in wxPyPlot in wx.lib helped be grok
wxPrinting...
Thanks, Chris. I have PyPlot.py in the ../wxPython-2.6.1.0/demo directory.
I think that's what I'm seeking.
--
Richard B. Shepard, Ph.D. | The Environmental Permitting
Applied Ecosystem Services, Inc. | Accelerator(TM)
<http://www.appl-ecosys.com> Voice: 503-667-4517 Fax: 503-667-8863
Spelunking further, I see it's called 'plot.py,' and that 23-line file
leads me to wx.lib.plot.PlotPrintout. But, I don't seem to have that code,
either.
Perhaps I'm not yet sufficiently caffinated to find it.
Rich
···
On Mon, 12 Feb 2007, Rich Shepard wrote:
I've tried different forms of the name but just cannot find it. Anyone
know where it might be on a linux system with Python-2.4 and
wxPython-2.8.0.1?
--
Richard B. Shepard, Ph.D. | The Environmental Permitting
Applied Ecosystem Services, Inc. | Accelerator(TM)
<http://www.appl-ecosys.com> Voice: 503-667-4517 Fax: 503-667-8863
I've tried different forms of the name but just cannot find it. Anyone
know where it might be on a linux system with Python-2.4 and
wxPython-2.8.0.1?
It looks like it's now in wx.lib.plot
site-packages/wx-2.8-mac-unicode/wx/lib/plot.py
on My OS-X box.
-Chris
···
--
Christopher Barker, Ph.D.
Oceanographer
Emergency Response Division
NOAA/NOS/OR&R (206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329 fax
Seattle, WA 98115 (206) 526-6317 main reception