from PySide import QtCore,QtGui app = QtGui.QApplication([]) def do_nothing(a): pass QtCore.QTimer.singleShot(1000, do_nothing)