From 030e448d37188edddd39504b81b34776bc720152 Mon Sep 17 00:00:00 2001 From: "vn.py" Date: Sat, 4 Aug 2018 21:53:18 +0800 Subject: [PATCH] [Fix]Close #1013 --- vnpy/trader/uiBasicWidget.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vnpy/trader/uiBasicWidget.py b/vnpy/trader/uiBasicWidget.py index 6895a9a3..282e7762 100644 --- a/vnpy/trader/uiBasicWidget.py +++ b/vnpy/trader/uiBasicWidget.py @@ -1111,7 +1111,7 @@ class TradingWidget(QtWidgets.QFrame): # 自动填写信息 self.comboPriceType.setCurrentIndex(self.priceTypeList.index(PRICETYPE_LIMITPRICE)) self.comboOffset.setCurrentIndex(self.offsetList.index(OFFSET_CLOSE)) - self.spinVolume.setValue(pos.position) + self.lineVolume.setText(str(pos.position)) if pos.direction == DIRECTION_LONG or pos.direction == DIRECTION_NET: self.comboDirection.setCurrentIndex(self.directionList.index(DIRECTION_SHORT))