Open strawberry-code opened 2 years ago
How are you calling the above function? By default, py_cui
interfaces will only re-draw when an action is performed (key press, mouse press). If you want that function to be run periodically, you can use the set_on_draw_update_func()
to run the render
function on every draw call, and then unlock periodic re-draw of the screen with set_refresh_timeout()
. Note that the function set with set_on_draw_update_func()
is fired at the start of the draw loop, before the new widget is considered selected
.
It may be worthwhile to allow for setting a function to fire per draw call both at the start and end - that would simplify this
I am trying to change the color of the borders of the button which the cursor is pointing on.
I am trying by this without success:
I kindly ask for little help here. What's wrong? If it is possibile to achieve it...
In the picture below I would the button "Show Yes No Popup" be colored in RED_ON_BLACK.