Skip to content

Commit aac1858

Browse files
authored
Merge pull request #2 from Edanflame/main
将模块的图标文件信息,改为完整路径字符串
2 parents 596a29e + 5bccfb7 commit aac1858

File tree

4 files changed

+13
-6
lines changed

4 files changed

+13
-6
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# 1.0.0版本
2+
3+
1. 将模块的图标文件信息,改为完整路径字符串
4+
2. 调整接口初始化时,接口名称的赋值方式

README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@
77
<p align="center">
88
<img src ="https://img.shields.io/badge/version-1.0.0-blueviolet.svg"/>
99
<img src ="https://img.shields.io/badge/platform-linux|windows|mac-yellow.svg"/>
10-
<img src ="https://img.shields.io/badge/python-3.7-blue.svg" />
10+
<img src ="https://img.shields.io/badge/python-3.7|3.8|3.9|3.10-blue.svg" />
11+
<img src ="https://img.shields.io/github/license/vnpy/vnpy.svg?color=orange"/>
1112
</p>
1213

1314
## 说明
@@ -16,7 +17,7 @@
1617

1718
## 安装
1819

19-
安装需要基于2.9.0版本以上的[VN Studio](https://www.vnpy.com)
20+
安装需要基于3.0.0版本以上的[VN Studio](https://www.vnpy.com)
2021

2122
直接使用pip命令:
2223

@@ -27,5 +28,5 @@ pip install vnpy_rpcservice
2728
下载解压后在cmd中运行
2829

2930
```
30-
python setup.py install
31+
pip install -e .
3132
```

vnpy_rpcservice/rpc_gateway/rpc_gateway.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,16 +18,18 @@ class RpcGateway(BaseGateway):
1818
vn.py用于连接rpc服务的接口。
1919
"""
2020

21+
default_name: str = "RPC"
22+
2123
default_setting: Dict[str, str] = {
2224
"主动请求地址": "tcp://127.0.0.1:2014",
2325
"推送订阅地址": "tcp://127.0.0.1:4102"
2426
}
2527

2628
exchanges: List[Exchange] = list(Exchange)
2729

28-
def __init__(self, event_engine) -> None:
30+
def __init__(self, event_engine, gateway_name: str) -> None:
2931
"""构造函数"""
30-
super().__init__(event_engine, "RPC")
32+
super().__init__(event_engine, gateway_name)
3133

3234
self.symbol_gateway_map: Dict[str, str] = {}
3335

vnpy_rpcservice/rpc_service/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@ class RpcServiceApp(BaseApp):
1313
display_name = "RPC服务"
1414
engine_class = RpcEngine
1515
widget_name = "RpcManager"
16-
icon_name = "rpc.ico"
16+
icon_name = str(app_path.joinpath("ui", "rpc.ico"))

0 commit comments

Comments
 (0)