當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。