|
|
#1 |
|
Zealot
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 115
Karma: 35586
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:
|
|
|
|
|
|
#2 |
|
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,611
Karma: 28549044
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. |
|
|
|
| Advert | |
|
|
![]() |
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| <details><summary>title</summary>popup</details> | rjwse@aol.com | Editor | 4 | 03-28-2018 11:00 PM |
| Calibre:Book Cover size in Book Details side pane & Edit Metadata Individually window | Volfer | Calibre | 3 | 01-05-2016 02:56 PM |
| Accessing the author of a KF8 book | lisabeeren | Development | 8 | 10-29-2015 11:20 AM |
| Aura HD Accessing Book Information | Gilgamesh | Kobo Reader | 3 | 08-09-2013 02:36 AM |
| iPad Popup Book for iPad | kjk | Apple Devices | 2 | 07-06-2010 10:01 AM |