By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,597 Members | 1,547 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,597 IT Pros & Developers. It's quick & easy.

printing with wxPython

P: n/a
Hi!
I'm using wxPython to handle my application gui.. So, I have a notebook
widget and i have to print the object inside it's tab ... Maybe doing a
preview before printing... I know that wx has many objects to handle
printing.. i've tryied to use them, but i wasn't able to... Any hint? By
now, i solved the problem saving a screenshot if the screen in an image(bmp)
and then sending it to printer... (a print preview would be cool...)
tnx
F.P.

Jul 18 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
Fabio Pliger wrote:
Hi!
I'm using wxPython to handle my application gui.. So, I have a notebook
widget and i have to print the object inside it's tab ... Maybe doing a
preview before printing... I know that wx has many objects to handle
printing.. i've tryied to use them, but i wasn't able to... Any hint? By
now, i solved the problem saving a screenshot if the screen in an image(bmp)
and then sending it to printer... (a print preview would be cool...)
tnx


Maybe the recipes on the wxPython wiki page would
help:
http://wiki.wxpython.org/index.cgi/RecipesOther

There are at least two dealing with "Printing".
Jul 18 '05 #2

P: n/a
Yeah,
There are two about printing... there is also an example in the wxDemo...
but they all talk about printing text... In my case i need to print (or at
least to make a print preview) a bitmap (or a panel...)
"Peter Hansen" <pe***@engcorp.com> ha scritto nel messaggio
news:FK********************@powergate.ca...
Fabio Pliger wrote:
Hi!
I'm using wxPython to handle my application gui.. So, I have a notebook
widget and i have to print the object inside it's tab ... Maybe doing a
preview before printing... I know that wx has many objects to handle
printing.. i've tryied to use them, but i wasn't able to... Any hint? By
now, i solved the problem saving a screenshot if the screen in an image(bmp) and then sending it to printer... (a print preview would be cool...)
tnx


Maybe the recipes on the wxPython wiki page would
help:
http://wiki.wxpython.org/index.cgi/RecipesOther

There are at least two dealing with "Printing".

Jul 18 '05 #3

P: n/a
Fabio Pliger wrote:
Yeah,
There are two about printing... there is also an example in the wxDemo...
but they all talk about printing text... In my case i need to print (or at
least to make a print preview) a bitmap (or a panel...)


The technique used should be the same. Basically
you need to be doing draws directly to a Device Context
(or whatever DC stands for...temporary memory lapse)
and then you can draw to the screen or to a printer,
as required.

I don't know offhand what routine is used to draw
a Bitmap into a DC, but I'm sure it's reasonably
well documented under the various DC methods.

-Peter
Jul 18 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.