[wxPython] printing question

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

[wxPython] printing question

Brad Losh-2
do you have to print from canvas or can you print from a panel also?


_______________________________________________
wxPython-users maillist  -  [hidden email]
http://starship.python.net/mailman/listinfo/wxpython-users



Reply | Threaded
Open this post in threaded view
|

Re: [wxPython] printing question

Robin Dunn
> do you have to print from canvas or can you print from a panel also?

All you need to print is a DC.  Typically you would share the drawing code
with a window's DC as well as a printer's DC so that you could easily print
the same thing you see in the window.

If you are looking for an easy way to print the controls (sub-windows) that
are on the panel, I'm afraid you are out of luck.  (Although there is
probably some way to do it...)

--
Robin Dunn
Software Craftsman
[hidden email]
http://AllDunn.com/robin/
http://AllDunn.com/wxPython/  Check it out!




_______________________________________________
wxPython-users maillist  -  [hidden email]
http://starship.python.net/mailman/listinfo/wxpython-users