tests for the last few issues (these test scripts should work with recent APIs, while the rest of the test suite needs an overhaul)
This commit is contained in:
parent
a57f0875f8
commit
2f4ebf3420
21 changed files with 1570 additions and 0 deletions
14
tests/minimal_reparent.py
Normal file
14
tests/minimal_reparent.py
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
import mcrfpy
|
||||
scene = mcrfpy.Scene("test")
|
||||
scene.activate()
|
||||
f1 = mcrfpy.Frame((10,10), (100,100), fill_color = (255, 0, 0, 64))
|
||||
f2 = mcrfpy.Frame((200,10), (100,100), fill_color = (0, 255, 0, 64))
|
||||
f_child = mcrfpy.Frame((25,25), (50,50), fill_color = (0, 0, 255, 64))
|
||||
|
||||
scene.children.append(f1)
|
||||
scene.children.append(f2)
|
||||
f1.children.append(f_child)
|
||||
f_child.parent = f2
|
||||
|
||||
print(f1.children)
|
||||
print(f2.children)
|
||||
Loading…
Add table
Add a link
Reference in a new issue