def OnDownload(self, event): self.filename = None self.busy = True if len(self.servers) == 0: rc = Messages.messageChoice( "SAP Server configuration not found. Do you want to configure?", "Server configuration") if rc == wx.ID_YES: ConfigWindow.showConfigWindow(self) else: Download.Show(self) self.busy = False event.Skip()