here is my python code
import sys
from PyQt4 import QtGui, QtCore
from ui_designer import *
class MyForm(QtGui.QMainWindow):
def __init__(self, parent=None):
#build parent user interface
QtGui.QWidget.__init__(self, parent)
self.ui = Ui_MainWindow()
self.ui.setupUi(self)
# connecting the buttons
QtCore.QObject.connect(self.ui.exitButton, QtCore.SIGNAL('clicked()'), self.doExit)
QtCore.QObject.connect(self.ui.scanButton,QtCore.SIGNAL('clicked()'), self.doScan)
QtCore.QObject.connect(self.ui.stopButton,QtCore.SIGNAL('clicked()'), self.doStop)
if __name__ == "__main__":
app = QtGui.QApplication(sys.argv)
myapp = MyForm()
myapp.show()
sys.exit(app.exec_())
when i created the button in pyqt 4 i called all the buttons the following exitButton, scanButton, stopButton.
hope someone can help or put me in the right direction

New Topic/Question
Reply



MultiQuote




|