While the following program prints out fine using

Python 2.7.6 in Ubuntu 14.04.4 as developed using

Geany 1.23.1, same program won't print out to printer

under Windows 10 Pro (64 bit). Geany uses there is

version 1.28 using Python 2.7.12. I can use CTRL-P

to print out the listing.

=================================

# hello2.py

import os

print
print "Hello World!"
print
pr = os.popen("lpr", "w")
for i in range(1,8):
    pr.write("\n")
pr.write("\n")
pr.write("\t\t01  02  03  04  05")
pr.write("\n")
pr.close
print
print("\tPlease wait several moments for printer to catch up.")
print

===================================

Thanking you readers in advance in resolving this non

Windows printing issue.

_______________________________________________
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor

Reply via email to