Python Forum

Full Version: python to install printer drivers automatic
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello:

Is there anyone can give me some tips of how to install printer drivers in python automatic.

because in IT daily work, we are boring of the end users talk to me install printer, I want to make a tool that they can install printer drivers easily

my code here
You can start here: https://pypi.python.org/pypi?%3Aaction=s...mit=search
I'm not sure, but believe that CUPS may be useful for this

Even if you don't use wxpython, you may wish to take a look at this: http://pythonhosted.org/wxPython/wx.Prin...wx.Printer
to get an idea of how to present the user end of a print driver,
and https://stackoverflow.com/questions/3105...ing-python
which is windows specific, but may also be useful.
You need to specify which OS(s) you are using, whether the printer is local or networked and whether the printer is meant to work on Windows, Linux, Mac or a combination of them. For many of the common printers, Windows, Linux and I presume, Mac and other *nix systems already have the drivers available. It is simply a matter of 'clicking' add a printer, selecting your printer and that's about it. I'm not sure how Python is going to make that any simpler or faster. Perhaps if you let us know, briefly, what steps you currently have to convey to the end user, it might help in pointing you in the right direction.

Besides, what are you trying to do, Python your way out of a job? Big Grin
(Jun-26-2017, 12:51 PM)sparkz_alot Wrote: [ -> ]Besides, what are you trying to do, Python your way out of a job?
Interesting conversation related to this: https://workplace.stackexchange.com/ques...ted-my-job
and as an FYI. wxpython has a printer routine:
see: https://wxpython.org/Phoenix/docs/html/w...wx.Printer
you may be able to look at the source and gain some insight