Search code examples
pythoncssapplication-settingspyforms

pyforms ignores settings in settings.py


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.


Solution

  • You need to update conf with settings.

    from pysettings import conf;
    import settings
    conf+=settings
    

    See the accompany tutorial.