全屏 Python 桌面 GUI 入门

Getting started with fullscreen Python desktop GUIs

Python 似乎有多个 GUI 库。我希望开发一个桌面应用程序(例如 Windows),具有完全自定义的设计——基本上,使用精灵或数学对象。在效果的情况下,一个要求是按钮的霓虹灯。

哪些library/libraries适合这个任务?

对于全屏,请在您的小部件上使用showFullScreen()

您可以将 PyQTQSS 一起用于 GUI。

QSS : Its a variant of CSS with most of the properties intersecting with CSS styles and specially designed to work and design the Qt guis and widgets. But instead of HTML tags we use the Widgets class name for styling them, like :- QWidget, QLineEdit, QLabel, QPushButton etc. etc.

例如:

QWidget {
   background-color: #222222;
}

QLineEdit {
   background-color: aliceblue;
   color: #618b38;
   font-style: italic;
   font-weight: bold;
}

QLabel {
   background-color: #222222;
   color: #618b38;
}

QPushButton {
   background-color: #8b0000;
   color: #ffffff;
   border-radius: 5px;
   border-style: none;
   height: 25px;
}