moonnejs / uiKLine

UI Tool for KLine Displaying
MIT License
241 stars 135 forks source link

support PyQt5 #1

Open msincenselee opened 6 years ago

msincenselee commented 6 years ago

Hope it will be upgrade to support PyQt5. incenselee@hotmail.com Wechat:28888502

genliu777 commented 6 years ago

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!

congcong009 commented 4 years ago

or you can replace it as: styleSheet = str(styleSheet, encoding='utf8') this works for me

alexfordc commented 4 years ago

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)

alexfordc commented 4 years ago

文件报错