Я пытаюсь включить кнопку при нажатии другой кнопки, но она продолжает выдавать эту ошибку (см. Заголовок)
class Test(wx.Frame):
def __init__(self,parent,id):
wx.Frame.__init__(self,parent,id, "Frame aka Window", style= wx.SYSTEM_MENU | wx.CAPTION | wx.CLOSE_BOX | wx.MINIMIZE_BOX, size=(400, 635))
loadData = wx.Button(panel, label="Load Data", size = (100,40))
loadData.SetFont(font)
self.Bind(wx.EVT_BUTTON, self.loadData, loadData)
openReportButton = wx.Button(panel, label = "Open Report", size = (100,40))
openReportButton.SetFont(font)
openReportButton.Disable()
self.Bind(wx.EVT_BUTTON, self.openReport, openReportButton)
def loadData(self, event):
self.openReportButton.Enable()
Что мне здесь не хватает?
Спасибо,