04-26-2009, 07:38 AM | #1 |
Guru
Posts: 869
Karma: 2676800
Join Date: Aug 2008
Location: Taranaki - NZ
Device: Kobo Aura H2O, Kobo Forma
|
GUI Frontend for python scripts [windows] - seeking mod input first
Hi all.
In my spare time I have been working on a windows GUI frontend for a couple of the python scripts that have been mentioned here on Mobileread. The program itself merely takes user input (filenames, PID, CC number etc) and passes these along to the appropriate python script with quotes as needed etc. The program also has the option to save the user data (PID, Name, CC) for later use. If I were to release the program, the python scripts in question would NOT be included. Mods - Am I allowed to attach the program here? Or is it getting too far into the grey area? |
04-26-2009, 09:58 AM | #2 |
reader
Posts: 6,975
Karma: 5183568
Join Date: Mar 2006
Location: Mississippi, USA
Device: Kindle 3, Kobo Glo HD
|
A GUI front end would be very useful.
I don't know if it is anything more than a fig leaf, but if the GUI also asked the user to enter the name and location of the script then it would not in principle be specific to a given script. For example mobi_gui.pyw could work with any python script (or even a non-python script?) that took three arguments: MOBI MOBI PID. There are actually two such here, see pid_checksum and also the generic argecho. In addition, KindleDRM only takes one MOBI argument, and there is another script often mentioned on these forums with two arguments: AZW PID. Note that a MOBI can be in .azw as well as .prc or .mobi (so AZW and MOBI should be interchangable in the GUI). |
Advert | |
|
04-26-2009, 11:03 AM | #3 |
Fanatic
Posts: 551
Karma: 1121392
Join Date: May 2008
Location: USA
Device: HTC One M8
|
Sounds neat. I've been using Pythonwin as a front end for those scripts, but your idea sounds more convenient.
|
04-26-2009, 11:49 AM | #4 |
Resident Curmudgeon
Posts: 76,031
Karma: 134368292
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Personally, I prefer to use the command line for these Python scripts.
|
04-26-2009, 01:18 PM | #5 | |
What Title ?
Posts: 1,325
Karma: 1856232
Join Date: Jan 2009
Location: Bavaria Germany
Device: Sony Experia Z Ultra
|
Quote:
Since a lot of the confusion about using those scripts seem to come from people who don't know the command line or path requirements, a GUI like this could probably benefit a great many people. FWIW, I do like the command line myself too, and when I write my own C code, I write just for that environment. It is sooo much simpler for the coder to just concentrate on the algorithm without the GUI code. |
|
Advert | |
|
04-26-2009, 09:13 PM | #6 | |
Resident Curmudgeon
Posts: 76,031
Karma: 134368292
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
|
|
04-26-2009, 09:46 PM | #7 |
Guru
Posts: 869
Karma: 2676800
Join Date: Aug 2008
Location: Taranaki - NZ
Device: Kobo Aura H2O, Kobo Forma
|
Just a quick update.
wallcraft had a good idea that I am going to implement. I will create a new program that is as generic as possible. The program accept any script or CLI app that asks for (almost) any combination of INPUT OUTPUT OPT1 OPT2. I will start working on it this evening. In the meantime, if anyone wants me to post what I currently have, feel free to request away. |
04-27-2009, 01:04 AM | #8 |
Guru
Posts: 869
Karma: 2676800
Join Date: Aug 2008
Location: Taranaki - NZ
Device: Kobo Aura H2O, Kobo Forma
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
how to use python script with windows xp | tuufbiz1 | Other formats | 12 | 01-08-2011 08:22 AM |
The Idiot's Guide to running Igorsk's Python Scripts | Nate the great | Workshop | 9 | 05-22-2010 12:17 PM |
GUI doesn't show up in Windows | morphine | Calibre | 3 | 09-04-2009 05:44 AM |
Python 261 In Windows Problems | jwsheets | Kindle Formats | 3 | 08-14-2009 09:08 AM |
using python with windows xp | tuufbiz1 | Kindle Formats | 10 | 05-05-2009 11:53 PM |