Advertisement
programusy

Untitled

Mar 1st, 2023
21
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.08 KB | None | 0 0
  1. import sys
  2. import PyQt5
  3. from PyQt5.QtGui import QFont
  4. from PyQt5.QtWidgets import QApplication, QWidget, QLabel, QTextEdit,QMainWindow
  5.  
  6.  
  7. class MyWindow(QMainWindow):
  8. def __init__(self):
  9. super().__init__()
  10. self.label = QLabel(self)
  11. self.label.setFont(QFont("arial", 20))
  12. self.label.setText(
  13. "*******************************\n*Oskar Staiński *\n*Nr telefonu: 213 742 051 *\n*Adres: Lipinki Luzyckie *\n*Ul: Laczna 48 *\n********************************")
  14. self.label.setGeometry(20, 0, 400, 400)
  15. self.textbox = QTextEdit("Nowy numer telefonu", self)
  16. self.textbox.setReadOnly(True)
  17. self.textbox.setGeometry(180, 300, 150, 20)
  18. self.textbox.setFont(QFont("arial", 12))
  19. self.label1 = QLabel(self)
  20. self.label1.setText("Wpisz numer telefonu")
  21. self.label1.setFont(QFont("arial", 12))
  22. self.label1.setGeometry(10, 260, 200, 100)
  23. self.show();
  24.  
  25.  
  26.  
  27.  
  28. app = QApplication(sys.argv)
  29. window=MyWindow()
  30. sys.exit(app.exec())
  31.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement