Python wx.AboutBox() Examples
The following are 10
code examples of wx.AboutBox().
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example.
You may also want to check out all available functions/classes of the module
wx
, or try the search function
.
Example #1
Source File: GoSyncController.py From gosync with GNU General Public License v2.0 | 6 votes |
def OnAbout(self, evt): """About GoSync""" if wxgtk4 : about = wx.adv.AboutDialogInfo() else: about = wx.AboutDialogInfo() about.SetIcon(wx.Icon(ABOUT_ICON, wx.BITMAP_TYPE_PNG)) about.SetName(APP_NAME) about.SetVersion(APP_VERSION) about.SetDescription(APP_DESCRIPTION) about.SetCopyright(APP_COPYRIGHT) about.SetWebSite(APP_WEBSITE) about.SetLicense(APP_LICENSE) about.AddDeveloper(APP_DEVELOPER) about.AddArtist(ART_DEVELOPER) if wxgtk4 : wx.adv.AboutBox(about) else: wx.AboutBox(about)
Example #2
Source File: chronolapse.py From chronolapse with MIT License | 6 votes |
def aboutMenuClicked(self, event): info = wx.AboutDialogInfo() info.Name = "Chronolapse" info.Version = self.VERSION info.Copyright = '(C) 2008-2016 Collin Green' description = """Chronolapse (CL) is a tool for creating time lapses on windows using screen captures, webcam captures, or both at the same time. CL also provides some rudimentary tools for resizing images and creating picture-in-picture (PIP) effects. Finally, CL provides a front end to mencode to take your series of images and turn them into a movie.""" info.Description = '\n'.join(textwrap.wrap(description, 70)) info.WebSite = ("http://chronolapse.com/", "Chronolapse") info.Developers = [ 'Collin "Keeyai" Green'] # Then we call wx.AboutBox giving it that info object wx.AboutBox(info)
Example #3
Source File: menubar.py From Gooey with MIT License | 6 votes |
def spawnAboutDialog(self, item, *args, **kwargs): """ Fill the wx.AboutBox with any relevant info the user provided and launch the dialog """ aboutOptions = { 'name': 'SetName', 'version': 'SetVersion', 'description': 'SetDescription', 'copyright': 'SetCopyright', 'website': 'SetWebSite', 'developer': 'AddDeveloper', 'license': 'SetLicense' } about = three_to_four.AboutDialog() for field, method in aboutOptions.items(): if field in item: getattr(about, method)(item[field]) three_to_four.AboutBox(about)
Example #4
Source File: relay_modbus_gui.py From R421A08-rs485-8ch-relay-board with MIT License | 6 votes |
def OnMenuAbout(self, event): """ Display an About Dialog :param event: :return: """ info = wx.adv.AboutDialogInfo() info.SetName('RS485 MODBUS GUI') info.SetVersion('v{}'.format(relay_modbus.VERSION)) info.SetCopyright('(C) 2018 by Erriez') ico_path = resource_path('images/modbus.ico') if os.path.exists(ico_path): info.SetIcon(wx.Icon(ico_path)) info.SetDescription(wordwrap( "This is an example application to monitor and send MODBUS commands using wxPython!", 350, wx.ClientDC(self))) info.SetWebSite("https://github.com/Erriez/R421A08-rs485-8ch-relay-board", "Source & Documentation") info.AddDeveloper('Erriez') info.SetLicense(wordwrap("MIT License: Completely and totally open source!", 500, wx.ClientDC(self))) # Then we call wx.AboutBox giving it that info object wx.adv.AboutBox(info)
Example #5
Source File: gui.py From report-ng with GNU General Public License v2.0 | 5 votes |
def About(self, e): dialog = wx.AboutDialogInfo() #dialog.SetIcon (wx.Icon('icon.ico', wx.BITMAP_TYPE_PNG)) dialog.SetIcon(self.icon) dialog.SetName(self.application.title+': '+self.application.long_title) dialog.SetVersion(self.application.version) dialog.SetCopyright(self.application.c) dialog.SetDescription('\n'.join(map(lambda x: x[4:], self.application.about.split('\n')[1:][:-1]))) dialog.SetWebSite(self.application.url) dialog.SetLicence(self.application.license) wx.AboutBox(dialog)
Example #6
Source File: yamled.py From report-ng with GNU General Public License v2.0 | 5 votes |
def About(self, e): dialog = wx.AboutDialogInfo() #dialog.SetIcon (wx.Icon('icon.ico', wx.BITMAP_TYPE_PNG)) dialog.SetIcon(self.icon) #dialog.SetName(self.application.long_title+' - '+self.application.title) dialog.SetName('Yaml Editor - Yamled') dialog.SetVersion(self.application.version) dialog.SetCopyright(self.application.c) #dialog.SetDescription('\n'.join(map(lambda x: x[4:], self.application.about.split('\n')[1:][:-1]))) dialog.SetDescription('\n'.join([ '', 'This editor is developed as part of report-ng project.', '', 'It supports only basic functionality.', 'This include:', '- Opening (drag & drop is supported), saving and closing yaml file', '- Tree view of yaml structure', '- Editing values', '- Adding new child node or structure (limited capability)', '- Deleting node or subtree', '', 'In other words - the tool is intended to simplify work with yaml files, ', 'not to allow designing them from scratch.'])) #dialog.SetWebSite(self.application.url) #dialog.SetLicence(self.application.license) wx.AboutBox(dialog)
Example #7
Source File: three_to_four.py From Gooey with MIT License | 5 votes |
def AboutBox(aboutDialog): return (wx.adv.AboutBox(aboutDialog) if isLatestVersion else wx.AboutBox(aboutDialog))
Example #8
Source File: mainframe.py From youtube-dl-gui with The Unlicense | 5 votes |
def _on_about(self, event): info = wx.AboutDialogInfo() if self.app_icon is not None: info.SetIcon(self.app_icon) info.SetName(__appname__) info.SetVersion(__version__) info.SetDescription(__descriptionfull__) info.SetWebSite(__projecturl__) info.SetLicense(__licensefull__) info.AddDeveloper(__author__) wx.AboutBox(info)
Example #9
Source File: LanguageEditor.py From EventGhost with GNU General Public License v2.0 | 5 votes |
def OnCmdAbout(dummyEvent): info = wx.AboutDialogInfo() info.Name = "EventGhost Language Editor" info.Version = "1.0.2" info.Copyright = "© 2005-2020 EventGhost Project" info.Developers = ["Bitmonster", ] info.WebSite = ("http://www.eventghost.net", "EventGhost home page") wx.AboutBox(info)
Example #10
Source File: AboutDialog.py From OpenPLC_Editor with GNU General Public License v3.0 | 5 votes |
def ShowAboutDialog(parent, info): if os.name == "nt": AboutDialog(parent, info) else: wx.AboutBox(info)