From 674d5795dc11443c57e5daa3d874c9998a9758a8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9C=D0=B8=D1=85=D0=B0=D0=B8=D0=BB=20=D0=9A=D0=B0=D0=BF?= =?UTF-8?q?=D0=B5=D0=BB=D1=8C=D0=BA=D0=BE?= Date: Sun, 16 Jun 2024 22:00:18 +0300 Subject: [PATCH] d --- v5/Window.py | 9 +++++++++ v5/main-gui.py | 9 ++------- 2 files changed, 11 insertions(+), 7 deletions(-) create mode 100644 v5/Window.py diff --git a/v5/Window.py b/v5/Window.py new file mode 100644 index 0000000..240bcab --- /dev/null +++ b/v5/Window.py @@ -0,0 +1,9 @@ +import arcade + +class Window(arcade.Window): + def __init__(self): + super().__init__(800, 600, "OGS Memory") + arcade.set_background_color(arcade.color.WHITE) + def on_draw(self): + arcade.start_render() + arcade.draw_circle_filled(400, 300, 15, arcade.color.BLUE) diff --git a/v5/main-gui.py b/v5/main-gui.py index d938a86..8b17205 100644 --- a/v5/main-gui.py +++ b/v5/main-gui.py @@ -8,6 +8,7 @@ from ctx_test2 import * from llm_test import * from llm_test_Python import * from memory_test import * +from Window import * import sys print(ctx_test_Controller_executeFunctions_registerFunction_set()) @@ -73,11 +74,5 @@ ctrl.registerFieldCallback("exit", lambda c: sys.exit(0)) ctrl.set("didLaunch", True) ctrl.set("playfieldSize", 2) -arcade.open_window(800, 600, "Hello, Arcade Memory") -arcade.set_background_color(arcade.color.WHITE) - -arcade.start_render() -arcade.draw_circle_filled(400, 300, 15, arcade.color.BLUE) -arcade.finish_render() - +wnd = Window() arcade.run()