I am trying to make a cancel button when pushed would cancel a program.
class PayrollSummary:
def __init__(self):
window = Tk()
window.title("Employee Payroll")
btCancel = Button(frame1, text = "Cancel", command = self.processCancel)
def processCancel(self):
self.destroy()
this is the error message I get:
AttributeError: 'PayrollSummary' object has no attribute 'destroy'