No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
Dears, I would like to create a list of QWidgets (lets say QDial). No problem till here. self.motorDial = [] self.velocityEdit = [] for iMotor in xrange(3): self.motorDial.append(QtGui.QDial()) self.velocityEdit.append(QtGui.QLineEdit()) The problem is to connect each of these Widgets to a function, passing to the function the index of the QDial … |
|
Hi guys, I've a problem calling a 'parent' PyQt4 method from inside an object that inerits it. Here is the code: [ICODE] import sys from PyQt4 import QtCore, QtGui class ItiaQPushButton(QtGui.QPushButton): def __init__(self, txt): super(ItiaQPushButton, self).__init__("Hello") print super(ItiaQPushButton, self).__doc__ #QtGui.QPushButton.setText("BO") def setText2(self, txt): self.setText(txt) #super(ItiaQPushButton, self).setText("PROVA") class Window(QtGui.QWidget): def __init__(self, … |