import wx import wx.adv class MainFrame(wx.Frame): def __init__(self, parent, title): super(MainFrame, self).__init__(parent, title=title) description = """Ez egy tesztprojekt""" licence = """Szabadon használható""" self.info = wx.adv.AboutDialogInfo() self.info.SetIcon(wx.Icon('projekt01.png', wx.BITMAP_TYPE_PNG)) self.info.SetName('Saját program') self.info.SetVersion('1.0') self.info.SetDescription(description) self.info.SetCopyright('Copyright (C) Nagy János, 2020') self.info.SetWebSite('https://valahol.hu') self.info.SetLicence(licence) self.info.AddDeveloper('Nagy János') self.info.AddDocWriter('Nagy János') self.info.AddArtist('Nagy János') self.info.AddTranslator('Nagy János') self.btn = wx.Button(self, wx.ID_ANY, 'Mehet') self.btn.Bind(wx.EVT_BUTTON, self.onClickButton1) def onClickButton1(self, event): wx.adv.AboutBox(self.info) class SimpleApp(wx.App): def OnInit(self): frame = MainFrame(None, 'Párbeszéd') frame.Show() return True if __name__ == "__main__": app = SimpleApp() app.MainLoop()