跳转到主要内容

为wxPython提供的Adwaita图标主题🐍

项目描述

为wxPython提供的Adwaita图标主题🐍

此软件包提供了一个来自Adwaita图标主题的wxPython wxArtProvider类。

文档

Documentation Status Docs Check Status

测试

Travis Build Status Windows Tests Status macOS Tests Status CodeFactor Grade

PyPI

PyPI - Package Version PyPI - Supported Python Versions PyPI - Supported Implementations PyPI - Wheel

活动

GitHub last commit GitHub commits since tagged version Maintenance

其他

License GitHub top language Requirements Status pre-commit

安装

wx_icons_adwaita 可以从PyPI安装。

使用 pip 安装

$ python -m pip install wx_icons_adwaita

使用方法

要在您的应用程序中使用 wx_icons_adwaita

from wx_icons_adwaita import wxAdwaitaIconTheme

class MyApp(wx.App):
        def OnInit(self):
                wx.ArtProvider.Push(wxAdwaitaIconTheme())
                self.frame = TestFrame(None, wx.ID_ANY)
                self.SetTopWindow(self.frame)
                self.frame.Show()
                return True

然后可以通过wx.ArtProvider访问图标

wx.ArtProvider.GetBitmap('document-new', wx.ART_OTHER, wx.Size(48, 48))

可以使用任何 FreeDesktop Icon Theme Specification 名称。

目前未使用 Client ID,因此只需传递 wx.ART_OTHER

项目详情


下载文件

下载适用于您平台的文件。如果您不确定选择哪个,请了解更多关于安装包的信息。

源代码分发

wx_icons_adwaita-0.1.2.tar.gz (40.4 MB 查看哈希值)

上传时间 源代码

构建分发

wx_icons_adwaita-0.1.2-py3-none-any.whl (42.5 MB 查看哈希值)

上传时间 Python 3

支持者