473,320 Members | 1,950 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

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

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)?
Jul 18 '05 #1
2 2647
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
Jul 18 '05 #2
How is print formatting determined under LINUX (PLAT_GTK)?

Neil wrote:
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


Jul 18 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

12
by: Raymond Hettinger | last post by:
Here are four more mini-mysteries for your amusement and edification. In this episode, the program output is not shown. Your goal is to predict the output and, if anything mysterious occurs,...
1
by: Nuff Said | last post by:
Question: Is there a way to unfold a Python class *without* unfolding all its methods etc. so that you can get a quick overview of the class? Details: I normally open a file either with...
32
by: Sticks | last post by:
i'm new to python and i was wondering what editors people prefer to use and why.
1
by: jim.eggleston | last post by:
I just figured out a reasonably decent way to use pdb in SciTE for debugging Python scripts. Debugging takes place in the SciTE output window. I have only tested this with SciTE on Windows. Here...
1
by: Sandy | last post by:
Dear Pythonic People, I recently discovered SciTE (1.68) as a programming editor, and I find it just beautiful. Small, fast, elegant and beautiful. I particularly like syntax highlighting...
4
by: John Ladasky | last post by:
Hi there. The following minimal code in Python 2.3.4 works under Idle v. 1.0.3, but not under SciTE v. 1.66: from time import sleep try: while True: sleep(0.25) print ".",
0
by: bobmon | last post by:
Hello, I have a problem running Python programs from within SciTE, under Linux --- the input( ) function fails with "IOError: Bad file descriptor" The same program will run happily in...
4
by: Billy | last post by:
Hi! I'm using: -Compiler: Borland Command Line C++ Compiler 5.5.1 -Code Editor: SciTE 1.75 Anybody know how we can in Scite with command Tools|Go (F5) compile and run my c or cpp program at...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.