[HELP] Examples to use block_signal
and unblock_signal
#1817
Labels
question
Further information is requested
block_signal
and unblock_signal
#1817
The two fonctions
block_signal
andunblock_signal
don't have examples and I can't seem to find any way to use them because of SignalHandlerId not implementingClone
.I'd want to setup a spinbutton with a
connect_value_changed
signal handler and block/unblock this signal when changing the value programmatically to distinguish this from user input (and makind it easier to not have issues related to additional signals being triggered).But adding custom methods (like a
block
andunblock
)in my template won't work even using aRefCell
from this lack ofClone
.I failed to do the "take the Signal handler id -> convert to c_ulong -> reconstruct the signal handler ID" as well. But at this point it's more of a hacky workaround than anything else.
The text was updated successfully, but these errors were encountered: