Python wx 模块,AboutDialogInfo() 实例源码

我们从Python开源项目中,提取了以下6个代码示例,用于说明如何使用wx.AboutDialogInfo()

项目:tindieorderprintout    作者:limpkin    | 项目源码 | 文件源码
def do_about(self, evt):
        info = wx.AboutDialogInfo()
        info.Name = self.title
        info.Version = __version__
        info.Copyright = __copyright__
        info.Description = (
            "Visual Template designer for PyFPDF (using wxPython OGL library)\n"
            "Input files are CSV format describing the layout, separated by ;\n"
            "Use toolbar buttons to open, save, print (preview) your template, "
            "and there are buttons to find, add, remove or duplicate elements.\n"
            "Over an element, a double left click opens edit text dialog, "
            "and a right click opens edit properties dialog. \n"
            "Multiple element can be selected with shift left click. \n"
            "Use arrow keys or drag-and-drop to move elements.\n"
            "For further information see project webpage:"
            )
        info.WebSite = ("http://code.google.com/p/pyfpdf/wiki/Templates", 
                        "pyfpdf Google Code Project")
        info.Developers = [ __author__, ]

        info.License = wordwrap(__license__, 500, wx.ClientDC(self))

        # Then we call wx.AboutBox giving it that info object
        wx.AboutBox(info)
项目:stopgo    作者:notklaatu    | 项目源码 | 文件源码
def OnAboutBox(self):

    description = """StopGo helps you create stop motion animation."""

    licence = """StopGo is free software; you can redistribute 
it and/or modify it under the terms of the GNU General Public License as 
published by the Free Software Foundation; either version 3 of the License, 
or (at your option) any later version.

StopGo is distributed in the hope that it will be useful, 
but WITHOUT ANY WARRANTY; without even the implied warranty of 
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  
See the GNU General Public License for more details. You should have 
received a copy of the GNU General Public License along with File Hunter; 
if not, write to the Free Software Foundation, Inc., 59 Temple Place, 
Suite 330, Boston, MA  VERSION_STRIVERSION_STRIVERSION_STRINVERSION_STRING307  USA"""

    info = wx.AboutDialogInfo()

    info.SetIcon(wx.Icon(os.path.join(os.path.dirname(__file__),'..','..','stopgo','images','makerbox.png'), wx.BITMAP_TYPE_PNG))
    info.SetName('StopGo')
    info.SetVersion('0.8.18')
    info.SetDescription(description)
    info.SetCopyright('(C) 2016 - ' + str(date.today().year) + ' Seth Kenlon')
    info.SetWebSite('http://makerbox.org.nz')
    info.SetLicence(licence)
    info.AddDeveloper('Klaatu, Seth Kenlon, Jess Weichler')

    wx.AboutBox(info)
项目:irida-miseq-uploader    作者:phac-nml    | 项目源码 | 文件源码
def _open_about(self, event):
        """Open the about dialog."""
        app_info = wx.AboutDialogInfo()
        app_info.Name = self._app_name
        app_info.Version = self._app_version
        app_info.WebSite = (self._app_url, "IRIDA Uploader on GitHub")
        app_info.Description = wordwrap("IRIDA Uploader is a tool to send Illumina MiSeq data to an instance of IRIDA for management.", 350, wx.ClientDC(self))

        wx.AboutBox(app_info)
项目:wxpythoncookbookcode    作者:driscollis    | 项目源码 | 文件源码
def onAboutDlg(self, event):
        info = wx.AboutDialogInfo()
        info.Name = "My About Box"
        info.Version = "0.0.1 Beta"
        info.Copyright = "(C) 2016 Python Geeks Everywhere"
        info.Description = wordwrap(
            "This is an example application that shows how to create "
            "different kinds of About Boxes using wxPython!",
            350, wx.ClientDC(self.panel))
        info.WebSite = ("http://www.pythonlibrary.org", "My Home Page")
        info.Developers = ["Mike Driscoll"]
        info.License = wordwrap("Completely and totally open source!", 500,
                                wx.ClientDC(self.panel))
        # Show the wx.AboutBox
        wx.AboutBox(info)
项目:PAWS    作者:Moonbase59    | 项目源码 | 文件源码
def OnMenuHelpAboutMenu(self, event):
        """
        This function is run when About is clicked on the menu. It calls
        a standard About dialog window.
        """

        info = wx.AboutDialogInfo()
        info.Name = u"PAWS"
        info.Version = Engine.Version
        info.Copyright = u"© 1998–2016 Roger Plowman, Matthias C. Hormann"
        info.Description = wordwrap(
            u"Core Engine: v" + Engine.Version + u", "
            u"Universe: v" + UniverseVersion + u"\n\n"
            u"PAWS is the Python Adventure Writing System, "
            u"a software to play and develop Interactive Fiction with. "
            u"It was originally developed by Roger Plowman and continued "
            u"in 2016 by Matthias C. Hormann, just for the fun of it.",
            350, wx.ClientDC(self))
        info.WebSite = (u"https://github.com/Moonbase59/PAWS", u"PAWS GitHub page")
        info.Developers = [u"Roger Plowman", u"Kevin Russell", u"Matthias C. Hormann"]
        info.License = wordwrap(
            u"Please see the LICENSE file that came with the software.",
            350, wx.ClientDC(self))

        # show it
        wx.AboutBox(info)
        # event.Skip()
项目:bonsu    作者:bonsudev    | 项目源码 | 文件源码
def OnAbout(self,e):
        description =\
        """Bonsu is a collection of tools and algorithms primarily for the reconstruction of phase information from diffraction intensity measurements."""
        licence =\
        """This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program.  If not, see <http://www.gnu.org/licenses/>."""
        if IsNotWX4():
            info = wx.AboutDialogInfo()
        else:
            info = wx.adv.AboutDialogInfo()
        info.SetIcon(wx.Icon(os.path.join(os.path.dirname(os.path.dirname(__file__)),'image',  'bonsu.ico'), wx.BITMAP_TYPE_ICO))
        info.SetName('Bonsu')
        info.SetVersion(__version__)
        info.SetDescription(description)
        info.SetCopyright('Copyright (C) 2011-2017 Marcus C. Newton')
        info.SetWebSite('github.com/bonsudev/bonsu')
        info.SetLicence(licence)
        info.AddDeveloper('Marcus C. Newton')
        self.version_str_list = []
        self.version_str_list.append("Python "+str(sys.version_info.major)+"."+str(sys.version_info.minor)+"."+str(sys.version_info.micro))
        self.version_str_list.append("wxPython "+wx.version())
        self.version_str_list.append("NumPy "+numpy.version.version)
        self.version_str_list.append("VTK "+vtk.vtkVersion().GetVTKVersion())
        self.version_str_list.append("PIL "+Image.VERSION)
        try:
            import h5py
            self.version_str_list.append("h5Py "+h5py.version.version)
        except:
            pass
        self.version_str_list.append("Build date: "+__builddate__)
        info.SetArtists(self.version_str_list)
        dialog = CustomAboutDialog(self,info)
        dialog.ShowModal()
        dialog.Destroy()