View Single Post
Old 07-07-2012, 10:01 AM   #48
kiwidude
Calibre Plugins Developer
kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.
 
Posts: 4,733
Karma: 2197770
Join Date: Oct 2010
Location: Australia
Device: Kindle Oasis
What is the name of your function in main.py that does the work?

At the moment presumably you are still hooking to a show_dialog function of the qaction triggered event with this line:
self.qaction.triggered.connect(self.show_dialog)

So other than renaming your show_dialog function to something more meaningful (e.g. do_stuff), you should just change your do_stuff function to now call whatever your function name is in main.py that you have imported.

It is kind of hard to be more specific without seeing your code - you can always pm me a link or post it here if you want us to take a look.
kiwidude is offline   Reply With Quote