Aug-15-2019, 10:13 AM
(This post was last modified: Aug-15-2019, 10:16 AM by baseball2201.)
Hey all,
Brand new to Tkinter. I'm trying to create random shapes with keyboard presses (keydown), and then delete them when the key is let go (keyup). I've been struggling with doing this, how should I go about it (either a high-level view or example code)? Ideally, the user will be pressing a lot of buttons in rapid succession, so I'd also like to be able to account for multiple shapes being displayed/removed at the same/close to the same time.
I've tried using pack.forget(), .after(), and a few other functions but no success. I've also tried Googling a lot and wasn't able to find anything.
Brand new to Tkinter. I'm trying to create random shapes with keyboard presses (keydown), and then delete them when the key is let go (keyup). I've been struggling with doing this, how should I go about it (either a high-level view or example code)? Ideally, the user will be pressing a lot of buttons in rapid succession, so I'd also like to be able to account for multiple shapes being displayed/removed at the same/close to the same time.
I've tried using pack.forget(), .after(), and a few other functions but no success. I've also tried Googling a lot and wasn't able to find anything.