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.
|