【问题标题】:pyforms ignores settings in settings.pypyforms 忽略 settings.py 中的设置
【发布时间】:2017-08-23 11:17:49
【问题描述】:

我创建了一个pyforms 应用程序并尝试在settings.py 中添加设置,但它们被忽略了。


settings.py

PYFORMS_STYLESHEET = "style.css"
PYFORMS_STYLESHEET_LINUX = "style.css"

style.css

QLineEdit {
   background-color: red;
}

所有文件都在同一个文件夹中。

【问题讨论】:

    标签: python css application-settings pyforms


    【解决方案1】:

    您需要将conf 更新为settings

    from pysettings import conf;
    import settings
    conf+=settings
    

    the accompany tutorial

    【讨论】:

    • 我不知道我怎么忽略了这一点
    猜你喜欢
    • 2021-12-16
    • 2020-11-25
    • 2015-08-17
    • 2023-04-05
    • 1970-01-01
    • 2019-03-31
    • 1970-01-01
    • 2015-08-31
    • 2019-08-07
    相关资源
    最近更新 更多