pyforms ignores settings in settings.py

215 Views Asked by At

I made a pyforms application and tried to add settings in settings.py, but they are ignored.


settings.py

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

style.css

QLineEdit {
   background-color: red;
}

All files are in the same Folder.

1

There are 1 best solutions below

1
On BEST ANSWER

You need to update conf with settings.

from pysettings import conf;
import settings
conf+=settings

See the accompany tutorial.