I love the new before_show Event to set attributes before the window is actually shown. Unfortunately this only works if I set this manually:
my_window.events.before_show._should_lock = True
Otherwise there are unpredictable race conditions due to the new thread where my callback is executed. In fact most attributes have to be set before the window is shown so I think it has to be synchronous here.
Possible solutions: Creating the Event with this flag per default or at least make the "_should_lock" a part of the public api and document it.
Practicalities
NO I am not willing to work on this issue myself.
NO I am not prepared to support this issue financially.
Specification
Description
I love the new before_show Event to set attributes before the window is actually shown. Unfortunately this only works if I set this manually:
my_window.events.before_show._should_lock = True
Otherwise there are unpredictable race conditions due to the new thread where my callback is executed. In fact most attributes have to be set before the window is shown so I think it has to be synchronous here.
Possible solutions: Creating the Event with this flag per default or at least make the "_should_lock" a part of the public api and document it.
Practicalities
NO I am not willing to work on this issue myself.
NO I am not prepared to support this issue financially.