Skip to content

Latest commit

 

History

History
27 lines (18 loc) · 733 Bytes

usage.rst

File metadata and controls

27 lines (18 loc) · 733 Bytes

Usage

To use wx_icons_adwaita in your application:

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

And then the icons can be accessed through wx.ArtProvider:

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

Any FreeDesktop Icon Theme Specification name can be used.

Currently the Client ID is not used, so just pass wx.ART_OTHER.