From 75fb3237be95a2724b5770c70aee5c79e06a05a0 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, 25 Jan 2021 07:32:39 +0800 Subject: [PATCH] hmmm --- bin/client.py | 2 +- bin/main.py | 4 ++-- bin/server.py | 4 ++-- sys_value/window.json5 | 2 ++ 4 files changed, 7 insertions(+), 5 deletions(-) diff --git a/bin/client.py b/bin/client.py index 9eedf5f..3eefa9f 100644 --- a/bin/client.py +++ b/bin/client.py @@ -14,7 +14,7 @@ from pyglet.window import Window class RenderThread(mp.Process, pyglet.window.Window): - def __init__(self, dev_list, dev_dic): + def __init__(self, dev_list, dev_dic, net_mode='local'): # do father class __init__() Window.__init__(self) mp.Process.__init__(self) diff --git a/bin/main.py b/bin/main.py index 66f0967..293e739 100644 --- a/bin/main.py +++ b/bin/main.py @@ -16,8 +16,8 @@ class Game(): def __init__(self): self.dics = share().dict() self.lists = share().list() - self.client = client.RenderThread(self.lists, self.dics) - self.server = server.server(self.lists, self.dics) + self.client = client.RenderThread(self.lists, self.dics, net_mode='local') + self.server = server.server(self.lists, self.dics, net_mode='local') def setup(self): pass diff --git a/bin/server.py b/bin/server.py index 53b6aa4..5b3f483 100644 --- a/bin/server.py +++ b/bin/server.py @@ -7,13 +7,13 @@ import multiprocessing as mp class server(mp.Process): - def __init__(self, dev_list, dev_dic): + def __init__(self, dev_list, dev_dic, net_mode='local'): # father class __init__() mp.Process.__init__(self) # value self.process_id = 'Server' self.process_name = 'server process' - # share memery + # share memory self.dev_list = dev_list self.dev_dic = dev_dic diff --git a/sys_value/window.json5 b/sys_value/window.json5 index 78545fa..9b843c8 100644 --- a/sys_value/window.json5 +++ b/sys_value/window.json5 @@ -6,6 +6,8 @@ "caption": "Simple Rocket {version}", // {version} -> version of SR "resizable": "true", + // bool "visible": "true", + // bool "style": "None" } \ No newline at end of file