![]() |
Attention | Topic was automatically imported from the old Question2Answer platform. |
![]() |
Asked By | Liv |
I was wondering if there’s a way to stop a signal in code once it’s emitted or if it is possible to just send a short signal.
![]() |
Attention | Topic was automatically imported from the old Question2Answer platform. |
![]() |
Asked By | Liv |
I was wondering if there’s a way to stop a signal in code once it’s emitted or if it is possible to just send a short signal.
![]() |
Reply From: | Magso |
Do you mean disconnect the signal or ignore it? Use pass
in an else
statement to ignore it.
#if conditions
else:
pass
or to disconnect it use disconnect(signal, target, method name)