Михаил Капелько 5 months ago
parent
commit
674d5795dc
2 changed files with 11 additions and 7 deletions
  1. +9
    -0
      v5/Window.py
  2. +2
    -7
      v5/main-gui.py

+ 9
- 0
v5/Window.py View File

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

+ 2
- 7
v5/main-gui.py View File

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

Loading…
Cancel
Save