Advertisement
brianMc

Simple PyQT4 Example

Dec 9th, 2016
120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.33 KB | None | 0 0
  1. #!/usr/bin/python
  2. # -*- coding: utf-8 -*-
  3.  
  4. import sys
  5. from PyQt4 import QtGui
  6.  
  7.  
  8. def main():
  9.    
  10.     app = QtGui.QApplication(sys.argv)
  11.  
  12.     w = QtGui.QWidget()
  13.     w.resize(250, 150)
  14.     w.move(300, 300)
  15.     w.setWindowTitle('Simple')
  16.     w.show()
  17.    
  18.     sys.exit(app.exec_())
  19.  
  20.  
  21. if __name__ == '__main__':
  22.     main()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement