找回密码
 立即注册
搜索
热搜: 活动 交友 discuz
查看: 152|回复: 0

test

[复制链接]

2

主题

0

回帖

22

积分

管理员

积分
22
发表于 2024-10-12 15:26:12 | 显示全部楼层 |阅读模式
  1. import sys

  2. from PyQt5.QtWidgets import QApplication, QMainWindow, QPushButton

  3. import qdarktheme

  4. # Enable HiDPI.
  5. qdarktheme.enable_hi_dpi()

  6. app = QApplication(sys.argv)
  7. # Apply dark theme.
  8. qdarktheme.setup_theme()

  9. main_win = QMainWindow()
  10. push_button = QPushButton("PyQtDarkTheme!!")
  11. main_win.setCentralWidget(push_button)

  12. main_win.show()

  13. app.exec()
复制代码

test
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Archiver|手机版|小黑屋|Discuz! X

GMT+8, 2026-3-14 08:16 , Processed in 0.056015 second(s), 18 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表