Hi! I'm working on a plugin for Avogadro (chemistry software) that uses pyqt. I've some problem with connecting a method to the clicked signal of a button. I've my class:
class Controller(object):
def __init__(self):
self.ui = MyDialog() # self.ui.run is a QPushButton
self.ui.run.clicked.connect(self.on_run_click)
def on_run_click(self):
1/0
class MyDialog(QDialog,Ui_Dialog): # ui designer compiled
def __init__(self):
QDialog.__init__(self)
self.setupUi(self)
Why when I click the button the on_run_click isn't called?