uiKLine
uiKLine copied to clipboard
support PyQt5
Hope it will be upgrade to support PyQt5. [email protected] Wechat:28888502
if you install PyQt5 instead of PyQt4 in your computer. then do as the following, and it will run well! replace PyQt4 with PyQt5; in uiKLine.py, add "from PyQt5.QtWidgets import *"; replace unicode(styleSheet, encoding='utf8') by str(styleSheet).
nothing more at all!
or you can replace it as: styleSheet = str(styleSheet, encoding='utf8') this works for me
if you install PyQt5 instead of PyQt4 in your computer. then do as the following, and it will run well! replace PyQt4 with PyQt5; in uiKLine.py, add "from PyQt5.QtWidgets import *"; replace unicode(styleSheet, encoding='utf8') by str(styleSheet).
nothing more at all!
'json\\uiKLine_button.json') # 输入配置文件,按钮配置文件
File "D:\quant\pyqt\uikline\uiKLine-master\uiKLine-master\uiBasicIO.py", line 69, in init self.loadInputSetting() File "D:\quant\pyqt\uikline\uiKLine-master\uiKLine-master\uiBasicIO.py", line 89, in loadInputSetting for setting in json.load(f): File "D:\quant\Python37\lib\json_init_.py", line 296, in load parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw) File "D:\quant\Python37\lib\json_init_.py", line 348, in loads return _default_decoder.decode(s) File "D:\quant\Python37\lib\json\decoder.py", line 337, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) File "D:\quant\Python37\lib\json\decoder.py", line 355, in raw_decode raise JSONDecodeError("Expecting value", s, err.value) from None json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
文件报错