Python input and casioplot
Posté le 20/08/2022 05:42
In the fx-9750GIII's stock Python add-in, I was hoping to use input while on the graphics screen. Unfortunately, as soon as input() runs, it switches back to the text screen. That behavior is printed in the User's Guide, so I suppose it is what it is. This does make it difficult for interactivity, tho.
My current workaround is to add an empty for loop with range(100000). That pauses the screen a bit before the input yanks it away. Then, anytime the len() is 0 (pressed EXE) it does another show_screen() and pauses again. That way I can see the screen as long as I want, albeit with brief interruptions.
Has anyone has come up with a better way? I might eventually port it to C and use fxsdk, then I'd have full control of the screen, non-blocking input, etc. The program is so large now that I cannot even edit it on the calculator, so there's not much reason not to.
Even so, I'm still curious if there's a solution in Python.