This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: IDLE needs printing
Type: Stage:
Components: IDLE Versions:
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: gvanrossum Nosy List: gvanrossum
Priority: normal Keywords:

Created on 2002-06-06 15:37 by gvanrossum, last changed 2022-04-10 16:05 by admin. This issue is now closed.

Messages (3)
msg11068 - (view) Author: Guido van Rossum (gvanrossum) * (Python committer) Date: 2002-06-06 15:37
IDLE really needs a way to print.

It turns out that on Windows, you can print a text file
by invoking notepad /p filename. We can do that using
os.popen() (rather than os.system(), which opens an
ugly DOS box).

On Unix, we can invoke lpr filename in the same way.

So we can make this a standard menu item that takes the
command line to use from the configuration file.  I'll
implement this when I have time (or someone else can
implement it).
msg11069 - (view) Author: Guido van Rossum (gvanrossum) * (Python committer) Date: 2002-06-06 15:40
Logged In: YES 
user_id=6380

According to Mark Hammond, you can also print by copying the
file to the default printer name; if you have win32all,
win32print.GetDefaultPrinter() returns the pathname for the
default printer (e.g. \\brat\canon).

Tim Peters notes that you can use "start /min notepad /p
filename" to avoid opening notepad's main window (it still
shows a dialog with a cancel button for a fraction of a
second).
msg11070 - (view) Author: Guido van Rossum (gvanrossum) * (Python committer) Date: 2002-06-10 19:26
Logged In: YES 
user_id=6380

I've added a simple Print Window command that does this
using Tim's suggestion.
History
Date User Action Args
2022-04-10 16:05:23adminsetgithub: 36702
2002-06-06 15:37:37gvanrossumcreate