MobileRead Forums

MobileRead Forums (https://www.mobileread.com/forums/index.php)
-   Development (https://www.mobileread.com/forums/forumdisplay.php?f=240)
-   -   How to get the selected category in the code of the gui plugin? (https://www.mobileread.com/forums/showthread.php?t=265919)

esvorontsov 10-02-2015 05:10 AM

How to get the selected category in the code of the gui plugin?
 
Good day

The user selects the tag with the left mouse button.
How to get the selected tag in the code of the gui plugin?

kovidgoyal 10-03-2015 01:52 AM

You get access to it as

self.gui.tags_view

Read the source of the TagsView class in calibre, in particular the search_string() fucntion which is what calibre itself uses to convert selected tags into a search query.


All times are GMT -4. The time now is 08:32 PM.

Powered by: vBulletin
Copyright ©2000 - 3.8.5, Jelsoft Enterprises Ltd.
MobileRead.com is a privately owned, operated and funded community.