activity.py 文件源码

python
阅读 27 收藏 0 点赞 0 评论 0

项目:VIRTUAL-PHONE 作者: SumanKanrar-IEM 项目源码 文件源码
def init_ui(self):
        self.b = QtWidgets.QPushButton('Push Me')
        self.l = QtWidgets.QLabel('I have not been clicked yet')

        h_box = QtWidgets.QHBoxLayout()
        h_box.addStretch()
        h_box.addWidget(self.l)
        h_box.addStretch()

        v_box = QtWidgets.QVBoxLayout()
        v_box.addWidget(self.b)
        v_box.addLayout(h_box)

        self.setLayout(v_box)
        self.setWindowTitle('PyQt5 Lesson 5')

        self.b.clicked.connect(self.btn_click)

        self.show()
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号