[wxPython] Printing a wxTextCtrl?

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[wxPython] Printing a wxTextCtrl?

Bruce Rabine

Is there a simple way to print the contents of a wxTextCtrl?

I've looked over the demo code for the PrintFramework, and it seems pretty
complicated, but it's handling various line draws from a wxScrolledPane,
and I figured that simple printing of text wouldn't be that complex. ;(

Is there some way to use the DrawText method of wxDC for this?

If not, could somebody give a general algorithm of the steps needed to put
the contents of the wxTextCtrl onto a Device Context suitable for
printing...  (for NT 4.0, wxPython 2.1b3)

Thanks in advance for any help!!


+ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - +
| Bruce Rabine              e-mail:  [hidden email] |
+ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - +




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