Re: [PyQt] accessing variables of class

2012-05-11 Thread Enes Albay
On 05/11/2012 12:15 AM, Wolfgang Rohdewald wrote: Am Donnerstag, 10. Mai 2012, 22:41:06 schrieb Enes Albay: class C(QtGui.QPushButton): def __init__(self, parent, letter): self.clicked.connect(self.handleLetter) def handleLetter(self): I want to

Re: [PyQt] accessing variables of class

2012-05-11 Thread Enes Albay
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

Re: [PyQt] EXTERNAL: Re: accessing variables of class

2012-05-11 Thread Enes Albay
On 05/11/2012 04:59 PM, Shoemaker, Ronnie A (N-UNITED SPACE ALLIANCE, LLC) wrote: Do you mean: A.lineEdit.setText(bla bla) Yes. ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Re: [PyQt] accessing variables of class

2012-05-11 Thread Vincent Vande Vyvre
On 11/05/12 15:13, Enes Albay wrote: 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):

Re: [PyQt] accessing variables of class

2012-05-11 Thread Wolfgang Rohdewald
Am Freitag, 11. Mai 2012, 16:12:18 schrieb Enes Albay: Thanks for reply. But, unfortunately, it doesn't solve my problem. it might be helpful if you post a complete runnable example for the problem. that would also tell us if your class C calls __init__ for QPushButton - my favourite guess for

Re: [PyQt] accessing variables of class

2012-05-11 Thread Enes Albay
On 05/11/2012 05:47 PM, Vincent Vande Vyvre wrote: On 11/05/12 15:13, Enes Albay wrote: 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)

Re: [PyQt] accessing variables of class

2012-05-11 Thread Wolfgang Rohdewald
Am Freitag, 11. Mai 2012, 18:18:18 schrieb Enes Albay: self.clicked.connect(A.handleLetter) AttributeError: 'function' object has no attribute '__pyqtSignature__' is A a class or an instance? It should be an instance. conventionally instance names should not start uppercase -- Wolfgang

Re: [PyQt] accessing variables of class

2012-05-11 Thread Enes Albay
On 05/11/2012 07:45 PM, Wolfgang Rohdewald wrote: is A a class or an instance? It should be an instance. It is not an instace. it is class A. I try to call class A handleLetter function when clicked my own button which is class C. ___ PyQt mailing

[PyQt] setShowDropIndicatorShown

2012-05-11 Thread Shoemaker, Ronnie A (N-UNITED SPACE ALLIANCE, LLC)
How do I get that little outline to show up where I am about to drop an item? Is setDropIndicatorShown(True) supposed to do that for a QTreeView instance? If so, what could cause it to not work? -- ronnie.a.shoema...@lmco.com