feat(projects): 新增PySide综合案例示例代码

This commit is contained in:
100gle
2022-09-16 21:50:35 +08:00
parent c3a251aca5
commit 49e639445b
6 changed files with 484 additions and 0 deletions

View File

@@ -0,0 +1,20 @@
import sys
from PySide6.QtWidgets import QApplication, QMessageBox
def main():
app = QApplication()
box = QMessageBox()
box.setText("Do you attempt to close window?")
box.setStandardButtons(box.No | box.Yes)
box.setDefaultButton(box.Yes)
box.show()
sys.exit(app.exec())
if __name__ == '__main__':
main()