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

@@ -1,3 +1,9 @@
<Timer>
True
True
AdvancedTimer()
AdvancedTimer() # created 0 seconds ago
0
123
True
TypeError