修复了几个bug

This commit is contained in:
WOLF 2015-04-22 16:24:29 +08:00
parent a9a0b36649
commit f7c3bc8ada
3 changed files with 782 additions and 780 deletions

View File

@ -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文件夹的路径。

View File

@ -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.