Jacek,
By watching demo.py from wxPython distribution I learned that I can use stock buttons, just by calling:
b = wx.Button(self, ID_DELETE)
This button has trash icon and a text. I want button with trash icon only.
How to create it?
I know that there is wx.BitmapButton, but how can I get "stock icon" from wxPython distribution?
You want wx.ArtProvider. See the following link for a list of icons you can use:
http://www.wxpython.org/docs/api/wx.ArtProvider-class.html
I do something like this to use one:
save_ico = wx.ArtProvider.GetBitmap(wx.ART_FILE_SAVE, wx.ART_TOOLBAR, (16,16))
Hope that helps.
ยทยทยท
-------------------
Mike Driscoll
Blog: http://blog.pythonlibrary.org
Python Extension Building Network: http://www.pythonlibrary.org