Oct-24-2022, 07:24 PM
json.load() expects a file pointer, not a file name.
https://docs.python.org/3/library/json.html
Not that it matters. You don't want to load a json file, you want to load a json file and apply the style object it creates. You really want to use loadJsonStyle() which is imported by:
https://docs.python.org/3/library/json.html
Not that it matters. You don't want to load a json file, you want to load a json file and apply the style object it creates. You really want to use loadJsonStyle() which is imported by:
from Custom_Widgets.Widgets import *I was looking at the custom widgets project on pypl. All the examples I looked at use PySide2. Widgets.py and WidgetsWorker.py reference PySide2 or PySide6. I don't think you can use PyQt5. PyQt5 and PySide6 are very similar, so you can probably "port" this to Qt5, but if you are just starting out I suggest using PySide6.