Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/python
- from PyQt4 import QtGui, QtCore
- import sys, time
- class CustomWidget(QtGui.QWidget):
- def __init__(self):
- super(CustomWidget, self).__init__()
- def start(self):
- for i in range(0, 10000):
- print "hello %d" % i
- def showEvent(self, showEvent):
- #print showEvent
- self.start()
- app = QtGui.QApplication(sys.argv)
- w1 = CustomWidget()
- w1.show()
- sys.exit(app.exec_())
Add Comment
Please, Sign In to add comment