Dynamic Amounts of Buttons #108
Replies: 2 comments 3 replies
-
I think you need to play with
Pretty sure this isn't good Rich practice but it does update when you press |
Beta Was this translation helpful? Give feedback.
-
@gerrymanoim I think you have uncovered a flaw. If you enable logs you might see the error It should work without any of the explicit refreshing, i.e. you would just need to clear the layout add widgets. I'll look in to that in the next update. |
Beta Was this translation helpful? Give feedback.
-
Hi - apologies if I'm missing something obvious, but I can't seem to get what I'm after to work.
The basic idea is, I have a hotkey that runs some action (in real life - makes an API call) that creates
n
buttons on the screen, replacing the existing buttons (if any). Similar to #32, but in response to an action. However, despite a lot of different attempts, I can't seem to get this to work. My sample code:This latest iteration was stolen from some code I saw in
WindowView
, but I've tried a few different iterations with grids, etc. I can see that my subtitle is changing in response to the action, but the buttons never display and placeholder never goes. away.It feels like I'm missing something very obvious here, but I'm not sure what.
Beta Was this translation helpful? Give feedback.
All reactions