process_widget.py 393 B

1234567891011121314151617181920
  1. import sys
  2. from PyQt4.QtGui import *
  3. app = QApplication(sys.argv)
  4. top = QWidget()
  5. halign = QHBoxLayout()
  6. top.setLayout(halign)
  7. busy_anim = QMovie("../share/busy16.gif")
  8. busy_anim.start()
  9. busy_anim_label = QLabel()
  10. busy_anim_label.setMovie(busy_anim)
  11. halign.addWidget(busy_anim_label)
  12. message_label = QLabel("Processing...")
  13. halign.addWidget(message_label)
  14. top.show()
  15. sys.exit(app.exec_())