全屏Python桌面gui入门

2024-09-28 15:23:04 发布

您现在位置:Python中文网/ 问答频道 /正文

Python似乎有多个GUI库。我希望开发一个桌面应用程序(例如Windows),完全定制设计-基本上,使用精灵或数学对象。在特效方面,一个要求是为按钮提供霓虹灯。你知道吗

哪些库适合此任务?你知道吗


Tags: 对象应用程序windowsgui数学按钮桌面精灵
1条回答
网友
1楼 · 发布于 2024-09-28 15:23:04

对于全屏使用小部件上的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;
}

相关问题 更多 >