From e8982be031397ca2113c0fbcd4afb1852d161f55 Mon Sep 17 00:00:00 2001 From: Sfever <136332266+Sfever@users.noreply.github.com> Date: Mon, 4 Mar 2024 22:49:31 +0800 Subject: [PATCH] not needed anymore --- main_test.py | 38 -------------------------------------- 1 file changed, 38 deletions(-) delete mode 100644 main_test.py diff --git a/main_test.py b/main_test.py deleted file mode 100644 index 675d140..0000000 --- a/main_test.py +++ /dev/null @@ -1,38 +0,0 @@ -from codes import init as base -import pygame as pg -import pygame.locals as pgl -import os -import json -from codes import textview -#intialize objects -main=base.inital() -mainwindow=main.get_screen_object() -bgexist=0 -textlist=textview.textview() -font4title_index=textlist.new_text() -font4title=textlist.get_object(font4title_index) - -if os.access("./res/bg.png",os.R_OK): - bg=pg.image.load("./res/bg.png").convert() - bgexist=1 - -if main.config_exist==1: - config={} - with open(main.config_path,'r') as config_reader:#read configs - config=json.load(config_reader) - #load title text properties from config.json - font4title.set_color(config["font_color"]) - font4title.set_font(config["font"]) - font4title.set_content(config["title"]) - font4title.set_size(config["font_size"]) - -font4title.set_text() - - - #show background if it's ther - - #get title text size for show it in center -F_width,F_height=font4title.get_dimensions() - #show title text - #Update display -main.onquit()