跳转到主要内容

Suru图标主题为wxPython 🐍

项目描述

Suru图标主题为wxPython 🐍

此软件包提供具有来自Suru图标主题的图标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_suru可以从PyPI安装。

使用pip安装

$ python -m pip install wx_icons_suru

用法

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

from wx_icons_suru import wxSuruIconTheme

class MyApp(wx.App):
        def OnInit(self):
                wx.ArtProvider.Push(wxSuruIconTheme())
                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_suru-0.1.2.tar.gz (11.9 MB 查看哈希值

上传时间

构建分发

wx_icons_suru-0.1.2-py3-none-any.whl (13.8 MB 查看哈希值

上传时间 Python 3

支持