修改vnrpc中的函数名称
This commit is contained in:
parent
2470a321f0
commit
49f1a7f0df
@ -25,7 +25,7 @@ if __name__ == '__main__':
|
|||||||
subAddress = 'tcp://localhost:0602'
|
subAddress = 'tcp://localhost:0602'
|
||||||
|
|
||||||
tc = TestClient(reqAddress, subAddress)
|
tc = TestClient(reqAddress, subAddress)
|
||||||
tc.subscribe('')
|
tc.subscribeTopic('')
|
||||||
tc.start()
|
tc.start()
|
||||||
|
|
||||||
while 1:
|
while 1:
|
||||||
|
@ -281,7 +281,7 @@ class RpcClient(RpcObject):
|
|||||||
raise NotImplementedError
|
raise NotImplementedError
|
||||||
|
|
||||||
#----------------------------------------------------------------------
|
#----------------------------------------------------------------------
|
||||||
def subscribe(self, topic):
|
def subscribeTopic(self, topic):
|
||||||
"""
|
"""
|
||||||
订阅特定主题的广播数据
|
订阅特定主题的广播数据
|
||||||
|
|
||||||
|
@ -132,34 +132,36 @@ class MainWindow(QtGui.QMainWindow):
|
|||||||
menubar = self.menuBar()
|
menubar = self.menuBar()
|
||||||
|
|
||||||
# 设计为只显示存在的接口
|
# 设计为只显示存在的接口
|
||||||
|
l = self.mainEngine.getAllGatewayNames()
|
||||||
|
|
||||||
sysMenu = menubar.addMenu(u'系统')
|
sysMenu = menubar.addMenu(u'系统')
|
||||||
if 'CTP' in self.mainEngine.gatewayDict:
|
if 'CTP' in l:
|
||||||
sysMenu.addAction(connectCtpAction)
|
sysMenu.addAction(connectCtpAction)
|
||||||
if 'LTS' in self.mainEngine.gatewayDict:
|
if 'LTS' in l:
|
||||||
sysMenu.addAction(connectLtsAction)
|
sysMenu.addAction(connectLtsAction)
|
||||||
if 'FEMAS' in self.mainEngine.gatewayDict:
|
if 'FEMAS' in l:
|
||||||
sysMenu.addAction(connectFemasAction)
|
sysMenu.addAction(connectFemasAction)
|
||||||
if 'XSPEED' in self.mainEngine.gatewayDict:
|
if 'XSPEED' in l:
|
||||||
sysMenu.addAction(connectXspeedAction)
|
sysMenu.addAction(connectXspeedAction)
|
||||||
if 'QDP' in self.mainEngine.gatewayDict:
|
if 'QDP' in l:
|
||||||
sysMenu.addAction(connectQdpAction)
|
sysMenu.addAction(connectQdpAction)
|
||||||
if 'KSOTP' in self.mainEngine.gatewayDict:
|
if 'KSOTP' in l:
|
||||||
sysMenu.addAction(connectKsotpAction)
|
sysMenu.addAction(connectKsotpAction)
|
||||||
if 'KSGOLD' in self.mainEngine.gatewayDict:
|
if 'KSGOLD' in l:
|
||||||
sysMenu.addAction(connectKsgoldAction)
|
sysMenu.addAction(connectKsgoldAction)
|
||||||
if 'SGIT' in self.mainEngine.gatewayDict:
|
if 'SGIT' in l:
|
||||||
sysMenu.addAction(connectSgitAction)
|
sysMenu.addAction(connectSgitAction)
|
||||||
sysMenu.addSeparator()
|
sysMenu.addSeparator()
|
||||||
if 'IB' in self.mainEngine.gatewayDict:
|
if 'IB' in l:
|
||||||
sysMenu.addAction(connectIbAction)
|
sysMenu.addAction(connectIbAction)
|
||||||
if 'SHZD' in self.mainEngine.gatewayDict:
|
if 'SHZD' in l:
|
||||||
sysMenu.addAction(connectShzdAction)
|
sysMenu.addAction(connectShzdAction)
|
||||||
if 'OANDA' in self.mainEngine.gatewayDict:
|
if 'OANDA' in l:
|
||||||
sysMenu.addAction(connectOandaAction)
|
sysMenu.addAction(connectOandaAction)
|
||||||
if 'OKCOIN' in self.mainEngine.gatewayDict:
|
if 'OKCOIN' in l:
|
||||||
sysMenu.addAction(connectOkcoinAction)
|
sysMenu.addAction(connectOkcoinAction)
|
||||||
sysMenu.addSeparator()
|
sysMenu.addSeparator()
|
||||||
if 'Wind' in self.mainEngine.gatewayDict:
|
if 'Wind' in l:
|
||||||
sysMenu.addAction(connectWindAction)
|
sysMenu.addAction(connectWindAction)
|
||||||
sysMenu.addSeparator()
|
sysMenu.addSeparator()
|
||||||
sysMenu.addAction(connectDbAction)
|
sysMenu.addAction(connectDbAction)
|
||||||
|
Loading…
Reference in New Issue
Block a user