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()