From 4a6d0480d8d93deff578efb2d914ccef00b7e875 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B2=88=E7=91=97=E6=9D=B0?= <3695888@qq.com> Date: Sat, 5 Dec 2020 23:19:00 +0800 Subject: [PATCH] littel change --- libs/loads.py | 6 ------ libs/main.py | 2 +- 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/libs/loads.py b/libs/loads.py index 97b2226..be6b2d7 100644 --- a/libs/loads.py +++ b/libs/loads.py @@ -16,9 +16,3 @@ def config(file_name, stack=None): if stack != None: rd = rd[stack] return rd - - -def window_config(): - j_config = config("./configs/window.json") - config_r = (j_config) - return config_r diff --git a/libs/main.py b/libs/main.py index 31df11e..73ee31a 100644 --- a/libs/main.py +++ b/libs/main.py @@ -24,7 +24,7 @@ class Game: def setup(self): # dic - self.window_c = libs.loads.window_config() + self.window_c = libs.loads.config(".\\configs\\window.json") # window self.window = Window(width=int(self.window_c['width']), height=int(self.window_c['height']),