pyqt5 新年快乐

    xiaoxiao2022-07-04  122

    ''' pyqt5 新年快乐 by 郑瑞国 ''' import sys from PyQt5.QtWidgets import QWidget, QLabel, QApplication class Mwin(QWidget): def __init__(self): super().__init__() self.initUI() def initUI(self): label = QLabel('新年快乐', self) label.move(100, 100) self.setGeometry(300, 100, 650, 450) self.setWindowTitle('猪年大吉') self.show() if __name__ == '__main__': app = QApplication(sys.argv) win = Mwin() sys.exit(app.exec_())

     

    最新回复(0)