"Set is Enabled" Accessed None in the same widget

Screenshot 2024-07-18 195150

Hi,
I got these two in a widget that got a button to click on. It disables after pressing and should enable again after the process is done. But the second one after “EnablePrint” throws me an “Accessed none” error. I’ve set the variable before, in construct, initialize etc. but it doesn’t seem to change.

Any ideas on what I am doing wrong here?

Thanks in advance.