10-02-2015, 04:10 AM | #1 |
Member
Posts: 17
Karma: 10
Join Date: Sep 2015
Device: sdfvsdvsdvsdvsd
|
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? Last edited by esvorontsov; 10-02-2015 at 04:23 AM. |
10-03-2015, 12:52 AM | #2 |
creator of calibre
Posts: 43,858
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
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. |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[GUI Plugin] User Category | kiwidude | Plugins | 123 | 03-16-2024 11:59 PM |
How to get the uuid of the book in the code of the gui plugin? | esvorontsov | Development | 3 | 09-29-2015 11:15 AM |
How to get a list of books corresponding to the selected tag in the GUI plugin? | esvorontsov | Development | 6 | 09-29-2015 10:06 AM |
Getting IDs of books selected in the GUI | wladdy | Calibre | 3 | 05-09-2015 06:23 AM |
[GUI Plugin] Plugin Updater **Deprecated** | kiwidude | Plugins | 159 | 06-19-2011 12:27 PM |