修复了几个bug
This commit is contained in:
parent
a9a0b36649
commit
f7c3bc8ada
@ -25,7 +25,7 @@ demo的实现参考了盈佳和尔易的LTS交易平台,功能如下:
|
||||
##nuitka编译说明
|
||||
要执行nuikta编译,请在本文件夹下打开cmd,并输入以下命令:
|
||||
|
||||
nuitka --recurse-all --windows-disable-console --icon=C:\vn.demo\vnpy.ico demoMain.py
|
||||
nuitka --standalone --windows-disable-console --icon=C:\vn.demo\vnpy.ico demoMain.py
|
||||
|
||||
其中C:\vn.demo\vnpy.ico需要修改为用户vn.demo文件夹的路径。
|
||||
|
||||
|
@ -1047,7 +1047,7 @@ class TradingWidget(QtGui.QWidget):
|
||||
self.labelAskVolume5.setText(str(data['AskVolume5']))
|
||||
|
||||
self.labelLastPrice.setText(str(data['LastPrice']))
|
||||
rt = (data['LastPrice']/data['OpenPrice'])-1
|
||||
rt = (data['LastPrice']/data['PreClosePrice'])-1
|
||||
self.labelReturn.setText(('%.2f' %(rt*100))+'%')
|
||||
|
||||
#----------------------------------------------------------------------
|
||||
@ -1102,6 +1102,9 @@ class AboutWidget(QtGui.QDialog):
|
||||
|
||||
QQ交流群:262656087
|
||||
|
||||
|
||||
|
||||
|
||||
开发环境
|
||||
|
||||
操作系统:Windows 7 专业版 64位
|
||||
@ -1121,7 +1124,7 @@ class AboutWidget(QtGui.QDialog):
|
||||
|
||||
label = QtGui.QLabel()
|
||||
label.setText(text)
|
||||
label.setMinimumWidth(350)
|
||||
label.setMinimumWidth(450)
|
||||
|
||||
vbox = QtGui.QVBoxLayout()
|
||||
vbox.addWidget(label)
|
||||
@ -1166,7 +1169,7 @@ class MainWindow(QtGui.QMainWindow):
|
||||
|
||||
lefttab = QtGui.QTabWidget()
|
||||
lefttab.addTab(self.orderM, u'报单')
|
||||
lefttab.addTab(self.tradeM, u'交易')
|
||||
lefttab.addTab(self.tradeM, u'成交')
|
||||
lefttab.addTab(self.logM, u'日志')
|
||||
|
||||
self.tradingW.setMaximumWidth(400)
|
||||
@ -1274,4 +1277,3 @@ class MainWindow(QtGui.QMainWindow):
|
||||
|
||||
|
||||
|
||||
|
||||
|
Binary file not shown.
Loading…
Reference in New Issue
Block a user