[PyQt] accessing variables of class

Enes Albay albayenes at gmail.com
Fri May 11 14:13:22 BST 2012


Hi,

when i change

class A(QtGui.QMainWindow):
     ....
     def setupUI(self):
         self.lineEdit = QtGui.QLineEdit()
         self.b = B()
         self.b.c.clicked.connect(self.handleLetter)
         ...

     def handleLetter(self):
         self.lineEdit.setText("Hello")

there is no compilation or running error. But, lineEdit text doesn't 
change, nothing happening.




More information about the PyQt mailing list