【问题标题】:Getting started with fullscreen Python desktop GUIs全屏 Python 桌面 GUI 入门
【发布时间】:2018-01-29 07:11:12
【问题描述】:

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

哪些库适合这项任务?

【问题讨论】:

    标签: python graphical-programming


    【解决方案1】:

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

    您可以将 PyQTQSS 一起用于 GUI。

    QSS : 它是 CSS 的一种变体,大多数属性相交 具有 CSS 样式并专门设计用于工作和设计 Qt gui 和小部件。但是我们使用 Widgets 类名而不是 HTML 标签 用于设置它们的样式,例如:- QWidget、QLineEdit、QLabel、QPushButton 等。 等等

    例如:

    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;
    }
    

    【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2015-02-08
    • 2011-12-28
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多