How to display an icon in a menu item?
I know how to create a plain text menu item:
开发者_Go百科item = gtk.MenuItem('text')
but how can I display an icon?
Like this:
Simply use ImageMenuItem
instead of MenuItem
.
Here's an example: http://zetcode.com/tutorials/pygtktutorial/menus/
精彩评论