Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Calibre > Development

Notices

Reply
 
Thread Tools Search this Thread
Old 10-02-2015, 05:10 AM   #1
esvorontsov
Member
esvorontsov began at the beginning.
 
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 05:23 AM.
esvorontsov is offline   Reply With Quote
Old 10-03-2015, 01:52 AM   #2
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 35,927
Karma: 12784235
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.
kovidgoyal is offline   Reply With Quote
Advert
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[GUI Plugin] User Category kiwidude Plugins 83 01-17-2020 11:57 PM
How to get the uuid of the book in the code of the gui plugin? esvorontsov Development 3 09-29-2015 12:15 PM
How to get a list of books corresponding to the selected tag in the GUI plugin? esvorontsov Development 6 09-29-2015 11:06 AM
Getting IDs of books selected in the GUI wladdy Calibre 3 05-09-2015 07:23 AM
[GUI Plugin] Plugin Updater **Deprecated** kiwidude Plugins 159 06-19-2011 01:27 PM


All times are GMT -4. The time now is 05:30 PM.


MobileRead.com is a privately owned, operated and funded community.