Apr-10-2021, 01:55 PM
I just found this old thread. I'm the developer of SimpleGUICS2Pygame (that is a reimplementation of specific modules from CodeSkulptor).
If I well understood you wanted remove buttons before add new ones. Unfortunately it is not possible. The API of SimpleGUI (in CodeSkulptor) is not designed for do that.
But it is possible to change text in buttons with the method set_text(). So maybe you can do want you want by change your logic.
If I well understood you wanted remove buttons before add new ones. Unfortunately it is not possible. The API of SimpleGUI (in CodeSkulptor) is not designed for do that.
But it is possible to change text in buttons with the method set_text(). So maybe you can do want you want by change your logic.