update tests: new scene API

This commit is contained in:
John McCardle 2026-01-03 10:59:52 -05:00
commit 838da4571d
142 changed files with 616 additions and 601 deletions

View file

@ -28,7 +28,7 @@ def take_screenshot(runtime):
sys.exit(0)
# Create minimal scene
mcrfpy.createScene("test")
test = mcrfpy.Scene("test")
# Add a visible element
caption = mcrfpy.Caption(pos=(100, 100), text="Screenshot Test")
@ -36,8 +36,8 @@ caption.font = mcrfpy.default_font
caption.fill_color = mcrfpy.Color(255, 255, 255)
caption.font_size = 24
mcrfpy.sceneUI("test").append(caption)
mcrfpy.setScene("test")
test.children.append(caption)
test.activate()
# Use timer to ensure rendering has started
print("Setting timer...")