Hi folks,
I can't seem to get my program to work when I add the awakeFromNib function to my code.
It just exits with code 5. No warnings or alerts. The main window doesn't pop up. Yet, when I remove the awakeFromNib, the program runs perfectly (minus the error this is intended to fix).
I can't seem to get my program to work when I add the awakeFromNib function to my code.
Code:
def awakeFromNib(self):
self.someButton.setEnabled_(0)
@objc.IBAction
def doSomething_(self, sender):
self.someButton.setEnabled_(1)
It just exits with code 5. No warnings or alerts. The main window doesn't pop up. Yet, when I remove the awakeFromNib, the program runs perfectly (minus the error this is intended to fix).