python - How to display an icon in a menu item? -


i know how create plain text menu item:

item = gtk.menuitem('text') 

but how can display icon?

like this:

alt text

simply use imagemenuitem instead of menuitem.

here's example: http://zetcode.com/tutorials/pygtktutorial/menus/


Comments

Popular posts from this blog

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -