McRogueFace/tests/unit/test_simple_drawable.py

30 lines
779 B
Python
Raw Normal View History

#!/usr/bin/env python3
"""Simple test to isolate drawable issue"""
import mcrfpy
import sys
2026-01-03 22:44:53 -05:00
def simple_test(timer, runtime):
timer.stop()
try:
# Test basic functionality
frame = mcrfpy.Frame(pos=(10, 10), size=(100, 100))
print(f"Frame created: visible={frame.visible}, opacity={frame.opacity}")
bounds = frame.get_bounds()
print(f"Bounds: {bounds}")
frame.move(5, 5)
print("Move completed")
frame.resize(150, 150)
print("Resize completed")
print("PASS - No crash!")
except Exception as e:
print(f"ERROR: {e}")
sys.exit(0)
2026-01-03 10:59:52 -05:00
test = mcrfpy.Scene("test")
2026-01-03 22:44:53 -05:00
simple_test_timer = mcrfpy.Timer("simple_test", simple_test, 100, once=True)