Skip to content

A simple print module using Python, Tkinter, and PyWin32.

License

Notifications You must be signed in to change notification settings

jestoy0514/prtp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

prtp

Is a python module which enables you to choose from available printers and not just the default one if you were using Tkinter as the graphical user interface. I was using Tkinter to build graphical user interface but there was no tutorial of some sort to be able to print a file to another printer and not just the default one.

Getting Started

Prerequisites

Before you install prtp, make sure you have install pywin32.

Installing

C:\Users\jessie> pip install prtp

Uninstall

C:\Users\jessie> pip uninstall prtp

Usage

import Tkinter as tk
from prtp import prtp

file_name = 'test.pdf'

root = tk.Tk()
win = prtp.PrintToPrinter(root, filename=file_name)
root.mainloop()

Authors

License

This project is licensed under the GNU General Public License Version 3 - see the LICENSE.md file for details

About

A simple print module using Python, Tkinter, and PyWin32.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages