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 l
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
___
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)
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
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):
>
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 compilatio
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 d
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 do that:
>
> lineEdit.setText("bla bla")
Hi,
I have problem about accessing member class variables.
For example;
I have 3 classes;
class A(QtGui.QMainWindow):
def setupUI(self):
self.lineEdit = QtGui.QLineEdit()
self.b = B()
...
class B(QtGui.QWidget):
def setupUI(self):
self.C =