Test suite modernization
This commit is contained in:
parent
0969f7c2f6
commit
52fdfd0347
141 changed files with 9947 additions and 4665 deletions
17
tests/all_inputs.py
Normal file
17
tests/all_inputs.py
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
import mcrfpy
|
||||
|
||||
s = mcrfpy.Scene("test")
|
||||
s.activate()
|
||||
|
||||
g = mcrfpy.Grid(pos=(0,0), size=(1024,768), grid_size = (64, 48))
|
||||
s.children.append(g)
|
||||
|
||||
def keys(*args):
|
||||
print("key: ", args)
|
||||
|
||||
def clicks(*args):
|
||||
print("click:", args)
|
||||
|
||||
s.on_key = keys
|
||||
g.on_click = clicks
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue