In this line the constructor to pygame.event.Event is called with event, but event itself could already be a pygame.event.Event .
If that's the case, then the constructor of pygame.event.Event will throw a TypeError:
future: <Task finished name='main' coro=<main() done, defined at <console>:4> exception=TypeError("'pygame.event.Event' object cannot be interpreted as an integer")>
Traceback (most recent call last):
File "<console>", line 19, in main
File "/data/data/org.python/assets/site-packages/platform_wasm/pygame/__init__.py", line 40, in patch_set_timer
cevent = pygame.event.Event(cust_event_no)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: 'pygame.event.Event' object cannot be interpreted as an integer
In this line the constructor to
pygame.event.Eventis called withevent, buteventitself could already be apygame.event.Event.If that's the case, then the constructor of
pygame.event.Eventwill throw aTypeError: