From 9ee947b9214200e5de85870d23cf6d53df08fab2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B2=88=E7=91=97=E6=9D=B0?= <3695888@qq.com> Date: Mon, 22 Feb 2021 23:27:18 +0800 Subject: [PATCH] \V0.1/ --- README.md | 2 +- bin/client.py | 5 ++++- docs/README-cn.md | 2 +- sys_value/window.json5 | 3 +++ 4 files changed, 9 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index cefc828..d6a85ab 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ ### Version -0.0 (developing) +0.1 (developing and have no DEMO) 中文README请移步 [这里](https://github.com/shenjackyuanjie/Difficult-Rocket/blob/main/docs/README-cn.md) diff --git a/bin/client.py b/bin/client.py index c15bc2b..47c457d 100644 --- a/bin/client.py +++ b/bin/client.py @@ -38,6 +38,8 @@ class client(mp.Process): self.view = 'space' self.net_mode = net_mode self.window_config = tools.config('sys_value/window.json5') + self.caption = self.window_config['caption'] + self.caption = configs.name_handler(self.caption, self.window_config['caption_option']) self.window = window(logger=logger, dev_dic=dev_dic, dev_list=dev_list, @@ -46,7 +48,8 @@ class client(mp.Process): width=int(self.window_config['width']), height=int(self.window_config['height']), fullscreen=tools.c_b(self.window_config['full_screen']), - caption=str(self.window_config['caption']), + caption=self.caption, + resizable=tools.c_b(self.window_config['resizable']), visible=tools.c_b(self.window_config['visible'])) self.log_config() diff --git a/docs/README-cn.md b/docs/README-cn.md index 63e8588..0c6ef38 100644 --- a/docs/README-cn.md +++ b/docs/README-cn.md @@ -2,7 +2,7 @@ ## 版本 -0.0 (开发.ing) +0.1 (开发.ing 没有DEMO(除非你能管一个乌漆嘛黑的页面+三个东西叫DEMO)) For an English version of readme, please move [here](https://github.com/shenjackyuanjie/Difficult-Rocket). diff --git a/sys_value/window.json5 b/sys_value/window.json5 index 68d49f2..45dd044 100644 --- a/sys_value/window.json5 +++ b/sys_value/window.json5 @@ -5,6 +5,9 @@ // bool 'caption': 'Simple Rocket {version}', // {version} -> version of SR + 'caption_option': { + '{version}': '0.1' + }, 'resizable': 'true', // bool 'visible': 'true',