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:
Traceback (most recent call last):
File "calibre_plugins.librarything_match.main", line 531, in show_details_popup
File "C:\Source\Calibre\src\calibre\gui2\book_details.p y", line 172, in render_html
File "C:\Source\Calibre\src\calibre\gui2\book_details.p y", line 230, in render_data
File "C:\Source\Calibre\src\calibre\ebooks\metadata\boo k\render.py", line 192, in mi_to_html
File "C:\Source\Calibre\src\calibre\ebooks\metadata\boo k\base.py", line 163, in __getattribute__