2

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()?

1 Answer 1

4

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)

Sign up to request clarification or add additional context in comments.

1 Comment

alternatively if ArtProvider doesn't return native images you can customize it for each platform

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.