[python/modturtle] Allowinterruption during reset

Scenario:
fro m turtle import *
while 1==1:
  reset()
-> This script cannot be interrupted
This commit is contained in:
Léa Saviot
2020-01-14 17:10:22 +01:00
parent 97c5ef79af
commit ac6ce97dea

View File

@@ -30,6 +30,8 @@ mp_obj_t modturtle___init__() {
mp_obj_t modturtle_reset() {
sTurtle.reset();
// Cf comment on modkandinsky_draw_string
micropython_port_interrupt_if_needed();
return mp_const_none;
}