examples/usercmodule/cexample: Add more advanced native class.

This adds a separate `AdvancedTimer` class that demonstrates a few more
advanced concepts usch as custom handlers for printing and attributes.

Signed-off-by: Laurens Valk <laurens@pybricks.com>
This commit is contained in:
Laurens Valk
2022-12-05 16:51:20 +01:00
committed by Damien George
parent 7fe8f030ee
commit 19b1333cb1
4 changed files with 106 additions and 0 deletions

View File

@@ -12,5 +12,6 @@ print(cexample.__name__)
d = dir(cexample)
d.index("add_ints")
d.index("Timer")
d.index("AdvancedTimer")
print(cexample.add_ints(1, 3))