I am new in Slicer programming.
Created a module using extension wizard, however, the self.applyButton in Widget class is always disabled. I use PyCharm to debug, and in the function
self.applyButton.enabled = self.inputSelector.currentNode() and self.outputSelector.currentNode()
when a new volume is loaded, the function onSelect is triggered, both inputSelector and outputSelector are not null. However, I could never see the applyButton enabled.
Why couldn’t the applyButton be enabled?
How should I enable it? Or should I change the code?
Thank you very much!