Printing with gtk-2.10

Hi there!

I implemented a Print method with gtk-2.10 PrintOperations... It was not
easy, because of some transformations issues inside matplotlib...

My wish is: The plot window navigation bar should provide a print button
in future. I think many people are missing this button.

Here, I want to provide code for printing the screen, just like the save
button on the navigation bar.
It is the merge of the save button's code and the code in
pygtk-2.10.1/examples/pygtk-demo/demos/print_editor.py

Maybe, there is already a lot of print code available for other GUI
backends, if it will be shared, it could become part of matplotlib...

Yours, Achim

(Sorry, I could not provide a running program, because I am short in
time. The code is working in a bigger project
http://www.fkp.physik.tu-darmstadt.de/damaris/ )

MatplotlibPrintGTK.py (4.4 KB)