![]() |
#136 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 13,535
Karma: 78910202
Join Date: Nov 2007
Location: Toronto
Device: Libra H2O, Libra Colour
|
Gui in python? Leverage the calibre command line to run a python script maybe?? See http://manual.calibre-ebook.com/gene...bre-debug.html
|
![]() |
![]() |
![]() |
#137 | |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 875
Karma: 2676800
Join Date: Aug 2008
Location: Taranaki - NZ
Device: Kobo Aura H2O, Kobo Forma
|
Quote:
I was just going to use python with Tkinter. Both require an external dependency (python or calibre). I have used neither PyQT or Tkinter, although it wouldn't exactly be a complex GUI. Just some checkboxes/radiobuttons and maybe text input if required. EDIT: And no, QT Creater/designer wouldn't be much use, as the idea is to create the GUI elements dynamically. |
|
![]() |
![]() |
Advert | |
|
![]() |
#138 | |
Bookworm
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 975
Karma: 768585
Join Date: Aug 2010
Location: Netherlands
Device: Sony prs-650, Kobo Glo HD (2x), Kobo Glo
|
Quote:
|
|
![]() |
![]() |
![]() |
#139 | |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 875
Karma: 2676800
Join Date: Aug 2008
Location: Taranaki - NZ
Device: Kobo Aura H2O, Kobo Forma
|
Quote:
At this stage, I'm concentrating on just enabling/disabling patches, and not setting any custom values. Of course, the gui can't actually DO anything yet at this stage... |
|
![]() |
![]() |
![]() |
#140 | |
Bookworm
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 975
Karma: 768585
Join Date: Aug 2010
Location: Netherlands
Device: Sony prs-650, Kobo Glo HD (2x), Kobo Glo
|
Quote:
https://www.mobileread.com/forums/sho...d.php?t=268351 Patches: https://www.mobileread.com/forums/sho...d.php?t=268407 |
|
![]() |
![]() |
Advert | |
|
![]() |
#141 | |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 875
Karma: 2676800
Join Date: Aug 2008
Location: Taranaki - NZ
Device: Kobo Aura H2O, Kobo Forma
|
Quote:
The program reads the patch file(s), and creates a GUI based on the contents of said file(s). The idea is that such a program would work for any version of the patches. |
|
![]() |
![]() |
![]() |
#142 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,821
Karma: 19162882
Join Date: Nov 2012
Location: Te Riu-a-Māui
Device: Kobo Glo
|
What needs to be added to the patch files to allow for mutually axclusive alternatives?
Would ie be enough if I added a tag such as Code:
patch_group = `Group name` Edit: But it would have to be commented out, unless I change the patch32lsb program to allow for it. So: Code:
# patch_group = `Group name` Last edited by GeoffR; 12-09-2015 at 04:23 PM. Reason: Commented out |
![]() |
![]() |
![]() |
#143 | |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 875
Karma: 2676800
Join Date: Aug 2008
Location: Taranaki - NZ
Device: Kobo Aura H2O, Kobo Forma
|
Quote:
The hardest element will be obtaining help. I could dump everything inside the <patch> tags into the help system (the thought was to use tooltips), but that doesn't work when some of the help text is outside the patch tags. Maybe have a [HELP patch_name1|patch_name2]...[/HELP] inside comments to mark the start and end of help text. Wouldn't hurt if it included any of the patching comments etc, just to make things simpler for everyone. |
|
![]() |
![]() |
![]() |
#144 | |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,792
Karma: 146391129
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
|
|
![]() |
![]() |
![]() |
#145 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 13,535
Karma: 78910202
Join Date: Nov 2007
Location: Toronto
Device: Libra H2O, Libra Colour
|
Why not write a configuration file out that shows what patches were selected on the previous run?
|
![]() |
![]() |
![]() |
#146 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 875
Karma: 2676800
Join Date: Aug 2008
Location: Taranaki - NZ
Device: Kobo Aura H2O, Kobo Forma
|
|
![]() |
![]() |
![]() |
#147 |
Bookworm
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 975
Karma: 768585
Join Date: Aug 2010
Location: Netherlands
Device: Sony prs-650, Kobo Glo HD (2x), Kobo Glo
|
|
![]() |
![]() |
![]() |
#148 | |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 875
Karma: 2676800
Join Date: Aug 2008
Location: Taranaki - NZ
Device: Kobo Aura H2O, Kobo Forma
|
Quote:
In it's high level form, the logic could be something like this: Code:
if saved_patch in current_patch_file: # use saved_patch data else: # discard saved_patch data EDIT: Saving and restoring the enabled/disabled status of a patch is easy. I'm hoping to also be able to save and restore settings such as margins/font sizes that people may modify as well, but that is a much more difficult problem to solve without breaking the patches. Last edited by sherman; 12-10-2015 at 04:41 AM. |
|
![]() |
![]() |
![]() |
#149 |
Junior Member
![]() Posts: 4
Karma: 10
Join Date: Oct 2016
Location: Barcelona
Device: Kobo Mini / NOOK Simple Touch
|
Your help is very appreciated.
Hi GeoffR, just a question.. I have Kobo Mini with software version (3.4.1), patching firmware of below is the correct patch?
Mark 4 Hardware: Mini !!!! (31 Dec 2015) 96.2 MB - 98,517 KB - 100,881,356 bytes http://download.kobobooks.com/firmwa...-3.19.5761.zip Thanks in advanced, POL |
![]() |
![]() |
![]() |
#150 | |
Bibliophagist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 46,338
Karma: 169098492
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
Quote:
|
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Instructions for patching firmware 3.15.0 | GeoffR | Kobo Developer's Corner | 146 | 05-24-2016 06:10 AM |
Instructions for patching firmware 3.17.3 | GeoffR | Kobo Developer's Corner | 60 | 09-17-2015 05:35 PM |
Instructions for patching firmware 3.17.0 | GeoffR | Kobo Developer's Corner | 49 | 08-16-2015 05:20 AM |
Instructions for patching firmware 3.16.10 | GeoffR | Kobo Developer's Corner | 12 | 08-14-2015 03:40 AM |
Instructions for patching firmware 3.3.x, 3.4.x, 3.5.x | GeoffR | Kobo Developer's Corner | 285 | 08-27-2014 10:06 AM |