#!/usr/bin/env python # -*- coding: utf-8 -*- from sys import argv, exit from PyQt4 import QtCore, QtGui from qt4_designer_output_python_file import Ui_MainWindow class main_win(QtGui.QMainWindow): def __init__(self, *args, **kw): super(main_win, self).__init__(*args, **kw) self.ui = Ui_MainWindow() self.ui.setupUi(self) self.ctimer = QtCore.QTimer() QtCore.QObject.connect(self.ctimer, QtCore.SIGNAL("timeout()"), \ self.constantUpdate) self.ctimer.start(25) self.move_count = 0 def constantUpdate(self): splash = self.ui.SplashLabel if self.move_count < 200: self.move_count += 1 splash.move(splash.x() + 1, splash.y() + 1) else: self.ctimer.stop() splash.hide() if __name__ == "__main__": app = QtGui.QApplication(argv) myapp = main_win() myapp.show() exit(app.exec_())