02-06-2021, 07:26 PM | #1 |
Connoisseur
Posts: 70
Karma: 21074
Join Date: Nov 2020
Location: Perth, Western Australia
Device: Apple Books & Kobo Libra H20
|
Accessing the Book Details popup
Hi all,
Is it possible to access the Book Details popup (i.e. the one that responds to the "i" key) programmatically? I have a QTableWidget in my plug-in that has a list of calibre e-books. I'd like to respond to double-click to display the book details. Failing that, is it possible to convert metadata to html? I tried this: mi = self.gui.current_db.new_api.get_metadata(id) html = render_html(mi, True, None) #DOESN'T WORK but got an error: AttributeError: Metadata object has no attribute named: 'path' Spoiler:
|
02-06-2021, 10:55 PM | #2 |
creator of calibre
Posts: 43,863
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
self.gui.iactions['Show Book Details'].show_book_info()
but this will show the book details for the *current* book in the main calibre book list. So you would need to make your book the current book first. |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
<details><summary>title</summary>popup</details> | rjwse@aol.com | Editor | 4 | 03-28-2018 10:00 PM |
Calibre:Book Cover size in Book Details side pane & Edit Metadata Individually window | Volfer | Calibre | 3 | 01-05-2016 01:56 PM |
Accessing the author of a KF8 book | lisabeeren | Development | 8 | 10-29-2015 10:20 AM |
Aura HD Accessing Book Information | Gilgamesh | Kobo Reader | 3 | 08-09-2013 01:36 AM |
iPad Popup Book for iPad | kjk | Apple Devices | 2 | 07-06-2010 09:01 AM |