Python Forum
[PyQt] error message
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[PyQt] error message
#4
hi
I have deleted the line
from PySide2.QtWidgets import * 
and add the line
import json
and changed the line
loadJsonStyle(self, self.ui)
with the line
json.load('style.json')
but i have the error message
Error:
return loads(fp.read(), AttributeError: 'str' object has no attribute 'read'
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,269 May-19-2020, 07:05 PM
Last Post: Larz60+
  [Tkinter] How to make message box error stay on top of window scratchmyhead 1 8,380 May-10-2020, 10:21 PM
Last Post: scratchmyhead
  [PyQt] No reaction and no error message when clicking button Atalanttore 4 4,868 Nov-23-2018, 01:48 PM
Last Post: Atalanttore
  [PyQt] error message in pyqt pro red_man_008 8 7,412 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