def onHelpAbout(self, evt): info = AboutDialogInfo() info.SetName(APP_NAME) info.SetVersion(APP_VERSION) if sys.platform != "darwin": info.SetIcon(DSPDemo_Icon_Small.GetIcon()) info.SetCopyright("(C) %s" % APP_COPYRIGHT) info.SetDescription( "\nDSPDemo est une application conçue pour analyser " "et visualiser différents processus audio.\n") AboutBox(info, self)
def ShowAboutDialog(prgName, startYear): """Displays About window. :param prgName: name of the program :param startYear: the first year of existence of the program """ info = AboutDialogInfo() info.SetIcon( wx.Icon(os.path.join(globalvar.ICONDIR, 'grass.ico'), wx.BITMAP_TYPE_ICO)) info.SetName(prgName) info.SetWebSite('http://grass.osgeo.org') info.SetDescription( _grassDevTeam(startYear) + '\n\n' + '\n'.join( textwrap.wrap( 'This program is free software under the GNU General Public License' '(>=v2). Read the file COPYING that comes with GRASS for details.', 75))) AboutBox(info)
class AboutDlg: def __init__(self, parent=None): self.info = AboutDialogInfo() self.info.SetIcon(icons.about.GetIcon()) self.info.SetName('DICOM Sorting') self.info.SetVersion(dicomsort.__version__) self.info.SetCopyright('(C) 2011 - 2020 Jonathan Suever') self.info.SetWebSite(dicomsort.__website__) self.GenerateDescription() AboutBox(self.info, parent=parent) def GenerateDescription(self): description = (" Program designed to sort DICOM images \n" + " into directories based upon DICOM header \n" + " information. The program also provides \n" + " additional functionality such as the \n" + "anonymization of DICOM images for patient privacy.") self.info.SetDescription(description)
class AboutDlg: def __init__(self, parent=None): self.info = AboutDialogInfo() self.info.SetIcon(icons.about.GetIcon()) self.info.SetName(meta.pretty_name) self.info.SetVersion(meta.version) self.info.SetCopyright(meta.copyright) self.info.SetWebSite(meta.website) self.GenerateDescription() AboutBox(self.info, parent=parent) def GenerateDescription(self): description = (" Program designed to sort DICOM images \n" + " into directories based upon DICOM header \n" + " information. The program also provides \n" + " additional functionality such as the \n" + "anonymization of DICOM images for patient privacy.") self.info.SetDescription(description)