[wxPython-users] Anybody knows how to print out main windows or frame?

Dong-In Lee lee.dongin at gmail.com
Fri Jan 11 13:59:56 PST 2008


Thank you Robin.

Now I can capture window and save to a file. Also, I can print the file by

win32api.ShellExecute(0,"print",fileName,None,".",0)

However, when I do this, it opens Windows Picture and Fax Viewer.
Definitely, I cound print with the viewer. However, I want to just directly
print the file without launching any program. Can I do that?


Thank you,
Dong In
On Jan 8, 2008 7:51 PM, Robin Dunn <robin at alldunn.com> wrote:

>  Dong-In Lee wrote:
> > Hi folks,
> >
> > I have just started learning wxPython; It's very fascinating!
> >
> > The tutorial has a text printing example, but does not have image (or
> > window) printing examples.
> > Here is the question. How can I print out a window which has buttons and
> > texts? I can just press 'PrintScreen' button on the keyboard, and save
> > it  into a .bmp, then print them with any image tool. Can wxPython
> > capture an image and print it?
> >
> > Thank you in advance!
>
> This was discussed a couple weeks ago:
>
> http://thread.gmane.org/gmane.comp.python.wxpython/54414/
>
>
> --
> Robin Dunn
> Software Craftsman
> http://wxPython.org <http://wxpython.org/>  Java give you jitters?  Relax
> with wxPython!
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: wxPython-users-unsubscribe at lists.wxwidgets.org
> For additional commands, e-mail: wxPython-users-help at lists.wxwidgets.org
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.wxwidgets.org/pipermail/wxpython-users/attachments/200801=
11/481d2677/attachment.htm


More information about the wxpython-users mailing list