Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import sys
- import PyQt5
- from PyQt5.QtGui import QFont
- from PyQt5.QtWidgets import QApplication, QWidget, QLabel, QTextEdit,QMainWindow
- class MyWindow(QMainWindow):
- def __init__(self):
- super().__init__()
- self.label = QLabel(self)
- self.label.setFont(QFont("arial", 20))
- self.label.setText(
- "*******************************\n*Oskar Staiński *\n*Nr telefonu: 213 742 051 *\n*Adres: Lipinki Luzyckie *\n*Ul: Laczna 48 *\n********************************")
- self.label.setGeometry(20, 0, 400, 400)
- self.textbox = QTextEdit("Nowy numer telefonu", self)
- self.textbox.setReadOnly(True)
- self.textbox.setGeometry(180, 300, 150, 20)
- self.textbox.setFont(QFont("arial", 12))
- self.label1 = QLabel(self)
- self.label1.setText("Wpisz numer telefonu")
- self.label1.setFont(QFont("arial", 12))
- self.label1.setGeometry(10, 260, 200, 100)
- self.show();
- app = QApplication(sys.argv)
- window=MyWindow()
- sys.exit(app.exec())
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement