Guest User

Untitled

a guest
Apr 26th, 2014
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.64 KB | None | 0 0
  1. #!/usr/bin/env python3
  2. # -*- coding: utf-8 -*-
  3.  
  4. import random
  5. import io
  6. import sys
  7. import os
  8. import time
  9.  
  10. from PyQt4.QtGui import *
  11. from PyQt4.QtCore import *
  12. from PyQt4.uic import *
  13.  
  14. """ MainWindow class """
  15. class Main(QMainWindow):
  16.     def __init__(self, parent = None):
  17.         super(Main, self).__init__(parent)
  18.  
  19.         # arquivo da interface
  20.         loadUi('MainWindow.ui', self)
  21.  
  22.         ...
  23.  
  24.         self.edtTexto.setText('')
  25.        
  26.         ...
  27.  
  28. if __name__ == "__main__":
  29.     app = QApplication(sys.argv)
  30.  
  31.     darks_w = Main()
  32.     darks_w.setWindowTitle('Teste')
  33.     darks_w.show()
  34.  
  35.     sys.exit(app.exec_())
Advertisement
Add Comment
Please, Sign In to add comment