Advertisement
Guest User

Untitled

a guest
May 26th, 2019
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.53 KB | None | 0 0
  1. # -*- coding: utf-8 -*-
  2.  
  3. # absolute.py
  4.  
  5. import sys
  6. from PyQt4 import QtGui
  7.  
  8.  
  9. class Example(QtGui.QWidget):
  10.  
  11. def __init__(self):
  12. super(Example, self).__init__()
  13.  
  14. self.initUI()
  15.  
  16. def initUI(self):
  17. label1 = QtGui.QLabel('Zetcode', self)
  18. label1.move(15, 10)
  19.  
  20. label2 = QtGui.QLabel('tutorials for programmers', self)
  21. label2.move(35, 40)
  22.  
  23. self.setWindowTitle('Absolute')
  24. self.resize(250, 150)
  25.  
  26.  
  27. app = QtGui.QApplication(sys.argv)
  28. ex = Example()
  29. ex.show()
  30. sys.exit(app.exec_())
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement