Javier
Javier

Reputation: 4623

How to use standard toolbar icons with WxPython?

I'm designing a simple text editor using WxPython, and I want to put the platform's native icons in the toolbar. It seems that the only way to make toolbars is with custom images, which are not good for portability. Is there some kind of (e.g.) GetSaveIcon()?

Upvotes: 2

Views: 1899

Answers (1)

Anurag Uniyal
Anurag Uniyal

Reputation: 88865

I don't think wxPython provides native images on each platform but just for consistency sake you can use wx.ArtProvider e.g. wx.ArtProvider.GetBitmap(wx.ART_FILE_OPEN)

Upvotes: 4

Related Questions