Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Readers > Kobo Reader > Kobo Developer's Corner

Notices

Reply
 
Thread Tools Search this Thread
Old 12-31-2015, 04:57 PM   #1
sherman
Addict
sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.
 
Posts: 375
Karma: 742199
Join Date: Sep 2008
Location: Auckland - NZ
Device: Sony PRS-505/SC, B&N Nook, Sony PRS-650/BC, Kobo Glo, Kobo Aura H2O
Kobo Patch GUI

Introducing Kobo Patch GUI

This is a simple GUI for editing the unofficial kobo patch files. It is written in Python, and uses Tk/Tkinter for its interface.

The GUI is currently quite limited. It has the following features:
  • Enable/Disable patches
  • Disable all patches
  • Checking for mutually exlusive options*
  • Crude tooltip help

There is currently no way of making custom changes (such as changing margins, etc) or saving changes for the next version of patches. I hope to be able to create these features someday.

Download

Downloads are available from github here.

Installation/Usage

Unzip the archive to a folder of your choosing and run KoboPatchGUI.pyw.

Python 2.7.x or 3.4.x+ is required to run this GUI. For Windows users, a standard installation of Python should be sufficient. Linux users may require Tk from their distro's software repository. Mac OS X users will have to tell me if the program works or not, as I am unable to test.

The GUI works best with the latest versions of the Patch files provided by GeoffR, from version 3.19.5613. Note that GeoffR has added a feature in the patch files to assist this GUI, which was NOT in the initial release. It his highly recommended to download the latest version of the patch before using this GUI.


USE THIS PROGRAM AT YOUR OWN RISK. WHILE IT SHOULDN'T CAUSE ISSUES, I CANNOT GUARANTEE THAT IT WILL NOT.


Note that I am at best a part time hobby programmer. Therefore my code may not follow all best practices, or be all that efficient.

The code can be found at my Github account here. I welcome any improvements or added features.
sherman is offline   Reply With Quote
Old 12-31-2015, 06:21 PM   #2
PeterT
Grand Sorcerer
PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.
 
PeterT's Avatar
 
Posts: 8,956
Karma: 55094837
Join Date: Nov 2007
Location: Toronto
Device: Wife: Touch, Arc, Vox Me: Nexus 7, Glo
Maybe a dumb suggestion but if you were able to use the QT framework rather than Tk / Tkinter people could use the python environment supplied by calibre.
PeterT is offline   Reply With Quote
Old 12-31-2015, 06:24 PM   #3
sherman
Addict
sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.
 
Posts: 375
Karma: 742199
Join Date: Sep 2008
Location: Auckland - NZ
Device: Sony PRS-505/SC, B&N Nook, Sony PRS-650/BC, Kobo Glo, Kobo Aura H2O
a) I don't (yet) know PyQt
b) It would mean that those who for whatever reason don't have calibre installed would have to install PyQt as a dependency. On linux, this isn't a problem. On Windows....

EDIT: And yes, I know that Tk is not the prettiest interface in the world.

Last edited by sherman; 12-31-2015 at 06:27 PM.
sherman is offline   Reply With Quote
Old 12-31-2015, 07:06 PM   #4
freekobo
Groupie
freekobo ought to be getting tired of karma fortunes by now.freekobo ought to be getting tired of karma fortunes by now.freekobo ought to be getting tired of karma fortunes by now.freekobo ought to be getting tired of karma fortunes by now.freekobo ought to be getting tired of karma fortunes by now.freekobo ought to be getting tired of karma fortunes by now.freekobo ought to be getting tired of karma fortunes by now.freekobo ought to be getting tired of karma fortunes by now.freekobo ought to be getting tired of karma fortunes by now.freekobo ought to be getting tired of karma fortunes by now.freekobo ought to be getting tired of karma fortunes by now.
 
freekobo's Avatar
 
Posts: 158
Karma: 291546
Join Date: Jan 2013
Device: Kobo Aura
I really like this. I have often thought of how wonderful a GUI would be for patching the firmware files.

I always envisioned it having it prompt for the model of kobo, firmware version wanted and then download the firmware and patch files for the model and firmware version selected, extract them and then prompt the user for what to patch, and then display the end KoboRoot.tgz file. This should be possible as all the links are available for both the firmware and patch files...but this is just what I envisioned a GUI patcher to be.

Keep up the good work, wish I could help but I can't program.

Last edited by freekobo; 12-31-2015 at 07:09 PM.
freekobo is offline   Reply With Quote
Old 12-31-2015, 07:14 PM   #5
eschwartz
Irrational Optimist
eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.
 
eschwartz's Avatar
 
Posts: 16,862
Karma: 66654329
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
Quote:
Originally Posted by sherman View Post
a) I don't (yet) know PyQt
b) It would mean that those who for whatever reason don't have calibre installed would have to install PyQt as a dependency. On linux, this isn't a problem. On Windows....

EDIT: And yes, I know that Tk is not the prettiest interface in the world.
Doesn't PyQt offer binary Windows downloads? What is the problem?

Anyway I would think you'd want to use PyInstaller or similar to create a standalone executable -- save people from having to install python. So it shouldn't matter.
eschwartz is online now   Reply With Quote
Old 01-01-2016, 05:27 AM   #6
oren64
Free Electron
oren64 ought to be getting tired of karma fortunes by now.oren64 ought to be getting tired of karma fortunes by now.oren64 ought to be getting tired of karma fortunes by now.oren64 ought to be getting tired of karma fortunes by now.oren64 ought to be getting tired of karma fortunes by now.oren64 ought to be getting tired of karma fortunes by now.oren64 ought to be getting tired of karma fortunes by now.oren64 ought to be getting tired of karma fortunes by now.oren64 ought to be getting tired of karma fortunes by now.oren64 ought to be getting tired of karma fortunes by now.oren64 ought to be getting tired of karma fortunes by now.
 
oren64's Avatar
 
Posts: 530
Karma: 7370819
Join Date: Mar 2015
Location: Israel
Device: kobo glo
I like it too, good work .

1) Part of the patches don't work together like:
Code:
patch_name = `Disable reading footer`
patch_name = `Custom reading footer style`
So maybe you can add a Warning pop-up.

Edit: i can see you add this in the new version 3.19.5613.
I add "# patch_group =...." to the files in 3.13.1.

2)If you add a patch and save the changes, it still show "patch_enable = `no`" in the yellow pop-up .

Last edited by oren64; 01-01-2016 at 06:24 AM. Reason: i can see you add this in the new version 3.19.5613.
oren64 is offline   Reply With Quote
Old 01-01-2016, 06:24 AM   #7
sherman
Addict
sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.
 
Posts: 375
Karma: 742199
Join Date: Sep 2008
Location: Auckland - NZ
Device: Sony PRS-505/SC, B&N Nook, Sony PRS-650/BC, Kobo Glo, Kobo Aura H2O
Quote:
Originally Posted by oren64 View Post
I like it too, good work .

1) Part of the patches don't work together like:
Code:
patch_name = `Disable reading footer`
patch_name = `Custom reading footer style`
So maybe you can add a Warning pop-up.

Edit: i can see you add this in the new version 3.19.5613.

2)If you add a patch and save the changes, it still show "patch_enable = `no`" in the yellow pop-up .
Yeah, that's the "help" text, and once set (when the files are initially read), they don't change.

The "help" tooltips are currently very crude, it just shows everything between the <Patch></Patch> tags in the files. I and/or GeoffR needs to come up with a better method for delimiting appropriate help text that the GUI can read.
sherman is offline   Reply With Quote
Old 01-06-2016, 08:26 AM   #8
surquizu
Addict
surquizu can program the VCR without an owner's manual.surquizu can program the VCR without an owner's manual.surquizu can program the VCR without an owner's manual.surquizu can program the VCR without an owner's manual.surquizu can program the VCR without an owner's manual.surquizu can program the VCR without an owner's manual.surquizu can program the VCR without an owner's manual.surquizu can program the VCR without an owner's manual.surquizu can program the VCR without an owner's manual.surquizu can program the VCR without an owner's manual.surquizu can program the VCR without an owner's manual.
 
surquizu's Avatar
 
Posts: 323
Karma: 170417
Join Date: Jun 2008
Location: Zaragoza (Spain)
Device: prs-505, kobo auraHD, kobo auraH2O, kobo Glo HD
I like it!

thanks
surquizu is offline   Reply With Quote
Old 01-06-2016, 04:31 PM   #9
sherman
Addict
sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.
 
Posts: 375
Karma: 742199
Join Date: Sep 2008
Location: Auckland - NZ
Device: Sony PRS-505/SC, B&N Nook, Sony PRS-650/BC, Kobo Glo, Kobo Aura H2O
You're welcome!
sherman is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[GUI Plugin] Kobo Utilities davidfor Plugins 1060 01-31-2016 07:56 PM
Free (nook/Kindle/Kobo/DRM-free) A Patch of Darkness [Urban Fantasy w/Romance] ATDrake Deals, Freebies, and Resources (No Self-Promotion) 0 09-26-2014 01:55 AM
Has the Kobo store patch up for the Heartbleed bug? rollei General Discussions 7 04-12-2014 01:10 PM
Question re: patch in 0.8.34 Skydog Calibre 5 01-07-2012 05:32 PM
New patch: 2.9.1 vranghel iRex 10 03-16-2007 05:51 AM


All times are GMT -4. The time now is 02:50 AM.


MobileRead.com is a privately owned, operated and funded community.