最简单的QT程序

python版:

from PyQt5.QtWidgets import QApplication, QWidget, QVBoxLayout, QRadioButton
import sys

app = QApplication([])
w = QWidget()
layout = QVBoxLayout()
status = QRadioButton()
layout.addWidget(status)
status.setChecked(True)
w.setLayout(layout)
w.show()
sys.exit(app.exec_())
posted @ 2020-07-10 11:19  园糯  阅读(190)  评论(0编辑  收藏  举报