SciTE as editor for Python: No print formatting under LINUX.

K

Konrad Koller

Under Windows print formatting (header, footer etc.) is OK. Under
LINUX it does not work. SciTEGlobal.properties state around line 352:

# Printing - only works on Windows

Why? How is print formatting determined under LINUX (PLAT_GTK)?
 
N

Neil Hodgson

Konrad Koller:
Under Windows print formatting (header, footer etc.) is OK. Under
LINUX it does not work. SciTEGlobal.properties state around line 352:

# Printing - only works on Windows

Why? How is print formatting determined under LINUX (PLAT_GTK)?

On Windows, the same API is used for drawing to the screen and printer so
SciTE performs printing itself. GTK+ doesn't provide a printing API so SciTE
calls an external application, with the default being a2ps set by
command.print.*=a2ps "$(FileNameExt)"

Neil
 
K

Konrad Koller

How is print formatting determined under LINUX (PLAT_GTK)?
On Windows, the same API is used for drawing to the screen and printer so
SciTE performs printing itself. GTK+ doesn't provide a printing API so SciTE
calls an external application, with the default being a2ps set by
command.print.*=a2ps "$(FileNameExt)"
Thank you very much for your valuable hint. I could try to add
appropriate options to a2ps, but to fulfill my formatting demands I
prefer to write a short Python program for printing (only for Linux).
Nevertheless SciTE remains my favorite tool for developments with
Python.

Cheers Konrad
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,579
Members
45,053
Latest member
BrodieSola

Latest Threads

Top