跳转到主要内容

Humanity 和 Humanity Dark图标主题为 wxPython 🐍

项目描述

Humanity 和 Humanity Dark图标主题为 wxPython 🐍

本软件包提供wxPython wxArtProvider类,使用Humanity和Humanity Dark图标主题中的图标。

文档

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_humanity 可从PyPI安装。

使用 pip 安装

$ python -m pip install wx_icons_humanity

用法

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

from wx_icons_humanity import wxHumanityIconTheme

class MyApp(wx.App):
        def OnInit(self):
                wx.ArtProvider.Push(wxHumanityIconTheme())
                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_humanity-0.1.3.tar.gz (35.8 MB 查看哈希值)

上传时间 源代码

支持