Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

list of wx.ICON_ options in wxpython

I am having difficulty finding a list of all of the inbuilt icons in wxpython.

So far I have found

wx.ICON_INFORMATION
wx.ICON_EXCLAMATION

If you knew of such a list, it would be much appreciated. Alternatively please leave any that have not been included.

Thank you

like image 537
Anake Avatar asked Dec 01 '25 13:12

Anake


1 Answers

How beautiful is python introspection:

>>> import wx
>>> mod = dir(wx)
>>> [item for item in mod if item.startswith('ICON_')]
['ICON_ASTERISK', 'ICON_ERROR', 'ICON_EXCLAMATION', 'ICON_HAND', 
 'ICON_INFORMATION', 'ICON_MASK', 'ICON_QUESTION', 'ICON_STOP', 'ICON_WARNING']
>>> 
like image 146
joaquin Avatar answered Dec 04 '25 05:12

joaquin



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!