当前位置: 首页>>代码示例>>Python>>正文


Python wx.AboutBox方法代码示例

本文整理汇总了Python中wx.AboutBox方法的典型用法代码示例。如果您正苦于以下问题:Python wx.AboutBox方法的具体用法?Python wx.AboutBox怎么用?Python wx.AboutBox使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在wx的用法示例。


在下文中一共展示了wx.AboutBox方法的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: OnAbout

# 需要导入模块: import wx [as 别名]
# 或者: from wx import AboutBox [as 别名]
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) 
开发者ID:hschauhan,项目名称:gosync,代码行数:21,代码来源:GoSyncController.py

示例2: aboutMenuClicked

# 需要导入模块: import wx [as 别名]
# 或者: from wx import AboutBox [as 别名]
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) 
开发者ID:collingreen,项目名称:chronolapse,代码行数:20,代码来源:chronolapse.py

示例3: spawnAboutDialog

# 需要导入模块: import wx [as 别名]
# 或者: from wx import AboutBox [as 别名]
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) 
开发者ID:chriskiehl,项目名称:Gooey,代码行数:22,代码来源:menubar.py

示例4: OnMenuAbout

# 需要导入模块: import wx [as 别名]
# 或者: from wx import AboutBox [as 别名]
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) 
开发者ID:Erriez,项目名称:R421A08-rs485-8ch-relay-board,代码行数:25,代码来源:relay_modbus_gui.py

示例5: About

# 需要导入模块: import wx [as 别名]
# 或者: from wx import AboutBox [as 别名]
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) 
开发者ID:hvqzao,项目名称:report-ng,代码行数:14,代码来源:gui.py

示例6: About

# 需要导入模块: import wx [as 别名]
# 或者: from wx import AboutBox [as 别名]
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) 
开发者ID:hvqzao,项目名称:report-ng,代码行数:28,代码来源:yamled.py

示例7: AboutBox

# 需要导入模块: import wx [as 别名]
# 或者: from wx import AboutBox [as 别名]
def AboutBox(aboutDialog):
    return (wx.adv.AboutBox(aboutDialog)
            if isLatestVersion
            else wx.AboutBox(aboutDialog)) 
开发者ID:chriskiehl,项目名称:Gooey,代码行数:6,代码来源:three_to_four.py

示例8: _on_about

# 需要导入模块: import wx [as 别名]
# 或者: from wx import AboutBox [as 别名]
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) 
开发者ID:MrS0m30n3,项目名称:youtube-dl-gui,代码行数:16,代码来源:mainframe.py

示例9: OnCmdAbout

# 需要导入模块: import wx [as 别名]
# 或者: from wx import AboutBox [as 别名]
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) 
开发者ID:EventGhost,项目名称:EventGhost,代码行数:10,代码来源:LanguageEditor.py

示例10: ShowAboutDialog

# 需要导入模块: import wx [as 别名]
# 或者: from wx import AboutBox [as 别名]
def ShowAboutDialog(parent, info):
    if os.name == "nt":
        AboutDialog(parent, info)
    else:
        wx.AboutBox(info) 
开发者ID:thiagoralves,项目名称:OpenPLC_Editor,代码行数:7,代码来源:AboutDialog.py


注:本文中的wx.AboutBox方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。