def on_mnu_help_about(self, event): infoDlg = wx_adv.AboutDialogInfo() infoDlg.Name = '\n'.join(['%s %s' % (appName, __version__), appTitle]) #infoDlg.Version = __version__ infoDlg.Copyright = __copyright__ infoDlg.Developers = [__author__] infoDlg.License = wx_ww.wordwrap(licTxt, 450, wx.ClientDC(self)) wx_adv.AboutBox(infoDlg)
def raise_msg(self, msg): '''add the warning message''' # info = wx.AboutDialogInfo() #wx2.8 info = adv.AboutDialogInfo() #wx4.0 info.Name = "Warning Message" info.Copyright = msg # wx.AboutBox(info) wx2.8 adv.AboutBox(info) #wx4.0
def OnMenuHelpAbout(self, evt=None): info = adv.AboutDialogInfo() info.SetName('Data Explorer') info.SetDescription('''An application for displaying data in tabular and graphical form.\n Written by Stephen Harrigan using code from Dmitri Iouchtchenko. ''' ) adv.AboutBox(info)
def About_info(self, name, version, cr, des, website, developers, client): # info = wx.AboutDialogInfo() #wx2.8 info = adv.AboutDialogInfo() #wx4.0 info.Name = name info.Version = version info.Copyright = cr info.Description = wordwrap(des, 350, client) info.WebSite = (website, "feedback") info.Developers = [developers] return info
def ShowAboutBox(self): info = adv.AboutDialogInfo() info.SetName("Write++") info.SetVersion(self._app.version) info.SetCopyright( "Copyright (C) 2011-2018 Timothy Johnson. All rights reserved.") info.SetDescription( _("A text editor that is free, cross-platform, and open-source.")) info.SetWebSite("https://github.com/t1m0thyj/write-plus-plus") info.SetLicense(license) adv.AboutBox(info)
def OnAboutApp(self, event): info = adv.AboutDialogInfo() info.SetIcon(wx.Icon('images/cherrytree.png')) info.SetName('Cranberry SMS') info.SetVersion('0.1') info.SetDescription(description) info.SetCopyright('(C) 2019 Prince Oforh Asiedu .') info.SetLicence(licence) info.AddDeveloper(developer) adv.AboutBox(info)
def onAbout(self, event): """ About Dialog """ info = adv.AboutDialogInfo() info.SetIcon( wx.Icon(resourcePath("Images/logo.png"), wx.BITMAP_TYPE_PNG)) info.SetName(Globals.TITLE) info.SetVersion(Globals.VERSION) info.SetDescription(Globals.DESCRIPTION) info.SetCopyright("(C) 2021 Esper - All Rights Reserved") info.SetWebSite(Globals.ESPER_LINK) adv.AboutBox(info)
def on_mnu_help_info(self, event): info = [] for bbModel in self.bbModels: info.append(bbModel.getDataDir()) info.extend(bbModel.getInfo()) info.append('-----------------------') infoTxt = '\n'.join(info[:-1]) infoDlg = wx_adv.AboutDialogInfo() #infoDlg.Name = appTitle infoDlg.Name = '\n'.join(['%s %s' % (appName, __version__), appTitle]) infoDlg.Copyright = __copyright__ infoDlg.Description = wx_ww.wordwrap(infoTxt, 450, wx.ClientDC(self)) wx_adv.AboutBox(infoDlg)
def Menu_handler(event): global load_file_flag global debag_flag Id_num = event.GetId() if Id_num == 10: if len(field) != 0: FiledClear() log.LogWrite('Open file select dialog\n', logtype=pro29NN.SYSTEM_LOG) dialog = wx.FileDialog(None, 'Select File', './') dialog.SetWildcard('*.png;*.pqr') dialog.ShowModal() filedata = dialog.GetPath() FileOpenAll(filedata) elif Id_num == 11: start_func() elif Id_num == 12: FiledClear() elif Id_num == 13: log.LogWrite('Quit Program\n', logtype=pro29NN.SYSTEM_LOG) sys.exit(0) elif Id_num == 14: debag_flag = True log.LogWrite('Start debag mode\n', logtype=pro29NN.SYSTEM_LOG) elif Id_num == 20: log.LogWrite('Open app about info\n', logtype=pro29NN.SYSTEM_LOG) info = adv.AboutDialogInfo() info.SetName(appname) info.SetVersion('2.0.0') info.SetCopyright('Copyright (c) 2018 Glaz egy.') adv.AboutBox(info) elif Id_num == 21: log.LogWrite('Open bot about info\n', logtype=pro29NN.SYSTEM_LOG) info = adv.AboutDialogInfo() info.SetName('水素でGo') info.SetVersion('0.1.0') info.SetCopyright('Copyright (c) 2018 Glaz egy.') adv.AboutBox(info)
def AboutDialog(self, evt): """ Function to show the dialog box for About Information """ info = adv.AboutDialogInfo() info.SetName('Data Preprocessing Helper') info.SetVersion('0.3.8') info.SetDescription(DESCRIPTION) info.SetCopyright('(C) Copyright 2017 Howard Cheung') info.SetWebSite( 'https://github.com/howardcheung/data-preprocessing-helper/') info.SetLicence(LICENSE) info.AddDeveloper('Howard Cheung [howard.at (at) gmail.com]') adv.AboutBox(info)
def OnABOUTItems0Menu(self, event): ''' ''' try: import wx.adv as wxadv # AboutBox moved here in Phoenix except: wxadv = wx info = wxadv.AboutDialogInfo() info.Name = 'Absorb' info.Copyright = ''' Robert B. Von Dreele, 2009(C) Argonne National Laboratory This product includes software developed by the UChicago Argonne, LLC, as Operator of Argonne National Laboratory. ''' info.Description = ''' For calculating X-ray absorption factors to 250keV for cylindrical powder samples; based on Fortran program Fprime of Cromer & Liberman corrected for Kissel & Pratt energy term; Jensen term not included ''' wxadv.AboutBox(info)
def OnABOUTItems0Menu(self, event): ''' ''' try: import wx.adv as wxadv # AboutBox moved here in Phoenix except: wxadv = wx info = wxadv.AboutDialogInfo() info.Name = 'pyFprime' info.Copyright = ''' Robert B. Von Dreele, 2008(C) Argonne National Laboratory This product includes software developed by the UChicago Argonne, LLC, as Operator of Argonne National Laboratory. ''' info.Description = ''' For calculating real and resonant X-ray scattering factors to 250keV; based on Fortran program of Cromer & Liberman corrected for Kissel & Pratt energy term; Jensen term not included (D. T. Cromer and D. A. Liberman, Acta Cryst. (1981). A37, 267-268.) ''' wxadv.AboutBox(info)
def About(self, evt): '''Display the About box ''' info = adv.AboutDialogInfo() info.SetName(self.Title) info.SetVersion(self.Version) info.SetCopyright(self.Copyright) #info.Description = wordwrap(self.Description, 350, wx.ClientDC(self.TopWindow)) x = '\n'.join([ self.info["python"], "Twisted Internet " + twisted.version.short(), "User Interface: WX Phoenix " + self.info["wx"] + "\n", "- "*80, "\n", ]) x+= '\n'.join([ "%s > %s (%s)" % m for m in self.loaded ]) info.SetDescription(self.Description+'\n\n'+x) info.SetWebSite(self.WebSite) info.AddDeveloper(self.Developer) #info.SetLicence(wordwrap(self.License, 600, wx.ClientDC(self.TopWindow))) info.SetLicence(self.License) adv.AboutBox(info)