Closed Merklins closed 1 year ago
Hi, check out https://pygame-menu.readthedocs.io/en/4.3.1/_source/create_menu.html#display-a-menu, in particular, menu can receive your events
using mymenu.update(events)
.
Timer-clock example, https://pygame-menu.readthedocs.io/en/4.3.1/_source/gallery.html#timer-clock-example, illustrates a case with a conditional menu (can be turned on/off. Here you can see menu draw and update.
https://pygame-menu.readthedocs.io/en/4.3.1/_source/gallery.html#game-selector-example does the same. Note this example has two different "while True". One is for the main app, and the other one is for the play_function
. I think this example is more similar to your project, see:
Thank you so much!
I still have a question about how to read the user's button clicks, I tried to do it with the code below, but it doesn't work.