pyforms 忽略 settings.py 中的设置
pyforms ignores settings in settings.py
我创建了一个 pyforms 应用程序并尝试在 settings.py 中添加设置,但它们被忽略了。
settings.py
PYFORMS_STYLESHEET = "style.css"
PYFORMS_STYLESHEET_LINUX = "style.css"
style.css
QLineEdit {
background-color: red;
}
所有文件都在同一个文件夹中。
您需要将 conf
更新为 settings
。
from pysettings import conf;
import settings
conf+=settings
我创建了一个 pyforms 应用程序并尝试在 settings.py 中添加设置,但它们被忽略了。
settings.py
PYFORMS_STYLESHEET = "style.css"
PYFORMS_STYLESHEET_LINUX = "style.css"
style.css
QLineEdit {
background-color: red;
}
所有文件都在同一个文件夹中。
您需要将 conf
更新为 settings
。
from pysettings import conf;
import settings
conf+=settings