Can you please tell me why i can't run this sample test program??
from PyQt4 import QtGui
class testui(QtGui.QTabWidget):
def __init__(self,parent=None):
QtGui.QTabWidget.__init__(self)
def test(self):
QtGui.QMessageBox.warning(self,"Hello","This is a test message")
def frun(objec):
time.sleep(8)
print('hello')
objec.test()
app=QtGui.QApplication(sys.argv)
obj=testui()
obj.show()
threading.Thread(target=frun,args=(obj,)).start()
app.exec_()
But in real i want to receive messages from the threads running in other python modules and display or process in my pyqt application.. If any of you ever did that share with me.. Thanks..