RE: [wxPython-users] Printing in wx ... please help
by David Woods other posts by this author
Jul 22 2004 2:29PM messages near this date
Re: [wxPython-users] Printing in wx ... please help
|
[wxPython-users] debugging C++ with wxPython
I've had really good luck with the Print Framework, being able to scale
graphics to print full-page. I have not had any problems with it.
My project is too large and has too many dependencies to be able to include
a manageable amount of source code that shows what I've done. (Sorry, I
don't have an hour to build a stand-alone demo for you.) If you really want
to explore it, go to http://www.transana.org and go to the Open Source
Development page. From there, you can link to our CVS, where you should
look at KeywordMapClass.py and KeywordMapPrintoutClass.py (along with
GraphicsControlClass.py for the underlying drawing routines) for examples of
using the Print Framework.
Good luck,
David Woods
Wisconsin Center for Education Research
University of Wisconsin, Madison
http://www.transana.org
-----Original Message-----
From: Bogdan Marinescu [mailto:bogdan.marinescu@[...].com]
Sent: Thursday, July 22, 2004 8:57 AM
To: wxPython-users@[...].org
Subject: [wxPython-users] Printing in wx ... please help
Hello all,
I just joined this list, and I did this because the printing
support in wxPython 2.5.1.5 is driving me crazy. I recently started an
application for realtime data acuqisition that uses PyPlot to plot the
data. The troubles started when I tried to print something using
PyPlot's PrintOut() function. It didn't signal an error, but it also
didn't show annything on the printer. I tried the original example in
the demo, but the result was the same. Then I tried the PrintFramework
example in the demo. This example actually printed something from time
to time, but most of the time it would just crash with an unhandled
exception error.
The problem is that I'm quite confused about the print support at
this point. I'll probably switch from PyPlot to matplotlib. matplotlib
doesn't have a print function yet, so I must save the plot as an image
and then send it to the printer. I want to do this from the
application, not using an external program. My question is, is there a
_functional_ python source somewhere that can take an image and send
it to the printer? I've been searching for something like this, but I
wasn't lucky. The second question is, does anybody actually know
what's the printing support status? Is it so buggy, or is it just me?
I obtained these results with wxPython 2.5.1.5, Python 2.3.2 and
2.3.4, with a HP printer and a printer emulator.
Please help me if you can, it would be really great to solve this issue.
Thank you.
Bogdan Marinescu
---------------------------------------------------------------------
To unsubscribe, e-mail: wxPython-users-unsubscribe@[...].org
For additional commands, e-mail: wxPython-users-help@[...].org
---------------------------------------------------------------------
To unsubscribe, e-mail: wxPython-users-unsubscribe@[...].org
For additional commands, e-mail: wxPython-users-help@lists.wxwidgets.org
Thread:
Bogdan Marinescu
Peter Damoc
Bogdan Marinescu
Peter Damoc
Bogdan Marinescu
Peter Damoc
Bogdan Marinescu
Robin Dunn
Bogdan Marinescu
Chris Barker
Bogdan Marinescu
Olivier Ravard
Bogdan Marinescu
Christian Kristukat
David Woods
|