super(WxButton, self).__init__(*args, **kw) self.InitUI() def InitUI(self): pnl = wx.Panel(self) closeButton = wx.Button(pnl, label='Close Me', pos=(20, 20)) closeButton.Bind(wx.EVT_BUTTON, self.OnClose) self.SetSize((350, 250)) self.SetTitle('Close Button') self.Centre() def OnClose(self, e): self.Close(True) def main(): app = wx.App() ex = WxButton(None) ex.Show() app.MainLoop() if __name__ == "__main__": main() License Being a wrapper, wxPython uses the same free software licence used by wxWidgets (wxWindows License)—which is approved by Free Software Foundation and Open Source Initiative. Applications developed with wxPython Chandler, a personal information manager Dropbox, desktop client for the Dropbox cloud-based storage Editra, a multi-platform text editor Google Drive, desktop client for the Google cloud-based storage system GRASS GIS, a free, open source geographical information system Métamorphose, a batch renamer Phatch, a photo batch processor PlayOnLinux and PlayOnMac, Wine front-ends PsychoPy, experiment creation tool for neuroscience and psychology research References Citations Sources Further reading External links wxPython Widget Tutorial Series Project Phoenix main page List of applications developed with wxPython 1998 software Free computer libraries Python (programming language) libraries Widget toolkits WxWidgets