12-07-2023, 10:32 PM | #1 |
Junior Member
Posts: 1
Karma: 10
Join Date: Dec 2023
Device: Kindle Oasis
|
Understanding the Container/GUI lifecycle
Hey y'all, I am currently working on my first Calibre Plugin, for context I discovered Calibre just about a month ago so there are still a lot of parts I'm not familiar with.
Anyway my plugin, my goal is to port one of the many Bionic Reading clones that work in browsers to the Calibre book editing tool. So far I have successfully been able to find, parse and edit a single XHTML file using most of the editor_demo_plugin as a starting point. However my issue comes when I try to apply the modifications to the entire book. I have tried to simply:
I attempted to block and prompt the user to give input at the end of each file modification, but I found that calling 'self.boss.show_current_diff()' multiple times just spawns multiple diff windows eventually crashing the app. I was hoping there was a way to execute the plugin, modify a single XHTML file, show the diff, wait for the user to preview it and ok or abort it, then proceed to the next file in the book until the book is finished. Any tips on editor plugins would be greatly appreciated thanks |
12-07-2023, 11:17 PM | #2 |
creator of calibre
Posts: 44,566
Karma: 24495948
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
If you are doing a lot of modifications it will take time, so show a busy cursor or run it in a thread and show a progress dialog.
|
Tags |
container, plugin development |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[GUI Plugin] Save Virtual Libraries To Column (GUI) | chaley | Plugins | 14 | 04-04-2021 06:25 AM |
container.mi and unicode | jackie_w | Development | 7 | 05-27-2018 11:49 AM |
Lifecycle of a new Kindle | rguion | Amazon Kindle | 16 | 10-27-2017 12:41 PM |
Recreating Container.xhtml | SigilBear | Sigil | 42 | 06-27-2017 06:32 PM |
Model update lifecycle | jerryleejr | Kobo Reader | 17 | 08-24-2016 02:12 PM |