microbit-foundation / python-editor-v3

Micro:bit Educational Foundation Python Editor V3
https://python.microbit.org
MIT License
57 stars 36 forks source link

Add buttons module for simulator. #882

Closed microbit-robert closed 2 years ago

github-actions[bot] commented 2 years ago

Preview build will be at https://review-python-editor-next.microbit.org/sim-buttons/?flag=simulator

microbit-robert commented 2 years ago

Effectively a working prototype of the current button design/behaviour without the touch logo. Space is quite tight, I'm not sure we'd get all three on a single row with the current simulator width.

We currently disable the buttons when the simulator is not running and reset any 'button toggled' state as this matches the current dispose behaviour of the ButtonUI in the simulator.

microbit-robert commented 2 years ago

Issue to resolve:

microbit-robert commented 2 years ago

Now relies on https://github.com/microbit-foundation/micropython-microbit-v2-simulator/pull/31.