Hello,
···
On 7/22/08, Jacek Poplawski jacekpoplawski@gmail.com wrote:
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?
Look at wx.ArtProvider and all the related wx.ART_* ids. (in this case wx.ART_DELETE)
Note that currently there is only a native art provder for the GTK port other platforms outside of Error/Warning/Info icons only have the limited wx builtin icon set available.
Cody