uiKLine icon indicating copy to clipboard operation
uiKLine copied to clipboard

support PyQt5

Open msincenselee opened this issue 7 years ago • 4 comments

Hope it will be upgrade to support PyQt5. [email protected] Wechat:28888502

msincenselee avatar Dec 09 '17 09:12 msincenselee

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!

genliu777 avatar Apr 16 '18 07:04 genliu777

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

congcong009 avatar Jul 25 '19 07:07 congcong009

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 avatar Mar 29 '20 11:03 alexfordc

文件报错

alexfordc avatar Mar 29 '20 11:03 alexfordc