Python Forum
[PyQt] error message
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[PyQt] error message
#5
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:
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.
the_wolf_dz likes this post
Reply


Messages In This Thread
error message - by the_wolf_dz - Oct-23-2022, 10:09 AM
RE: error message - by Yoriz - Oct-23-2022, 10:25 AM
RE: error message - by the_wolf_dz - Oct-24-2022, 10:01 AM
RE: error message - by the_wolf_dz - Oct-24-2022, 10:36 AM
RE: error message - by deanhystad - Oct-24-2022, 07:24 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Error message box and quit app Kumarkv 1 2,323 May-19-2020, 07:05 PM
Last Post: Larz60+
  [Tkinter] How to make message box error stay on top of window scratchmyhead 1 8,635 May-10-2020, 10:21 PM
Last Post: scratchmyhead
  [PyQt] No reaction and no error message when clicking button Atalanttore 4 4,947 Nov-23-2018, 01:48 PM
Last Post: Atalanttore
  [PyQt] error message in pyqt pro red_man_008 8 7,584 Aug-13-2017, 08:50 PM
Last Post: red_man_008

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020