Humanity 和 Humanity Dark图标主题为 wxPython 🐍
项目描述
Humanity 和 Humanity Dark图标主题为 wxPython 🐍
本软件包提供wxPython wxArtProvider类,使用Humanity和Humanity Dark图标主题中的图标。
文档 |
|
---|---|
测试 |
|
PyPI |
|
活动 |
|
其他 |
安装
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的哈希值
算法 | 哈希摘要 | |
---|---|---|
SHA256 | 77f5981addab31df67a3d6dc1bae3d54a97359385f5aaabee630f324aafaaf21 |
|
MD5 | 720f79d0be1932929c97255b1b3b19e6 |
|
BLAKE2b-256 | 95e79938abd96e90351a9a1c2f6dc9c064f3d210a2e757a60b2e541bf5c74a36 |