View Single Post
GraphicsGuy's Avatar
Posts: 16 | Thanked: 2 times | Joined on Jan 2008 @ California, USA
#31
Originally Posted by bongo View Post
Sounds like we should work together and open a project on garage.maemo.org
That would be cool. Here's a small modification of your program that adds a few options that work well with my specific printer. If it were just for me, I'd probably remove the host, user, save, and exit (just exit after I click print).

One little annoyance is that two orthogonal options (fast draft, and grayscale) are not presented as orthogonal by the printer driver (.ppd file). This kind of gets in the way of my idea to let the user just specify some number of generic option slots with the associated commands (because I had to insert code logic to combine the two options). I guess it would work if we just exposed all 4 combinations of the two options to the user, even though it's uglier. Even then, without some kind of radio box logic, the user might specify conflicting options. Maybe this is price for being both simple and general (simple, general, and pretty -- choose two).
Attached Files
File Type: txt nPrint.gg.v0.py.txt (4.9 KB, 124 views)