How to display an icon in a menu item?

I know how to create a plain text menu item:

item = gtk.MenuItem('text')

but how can i display the icon?

Like this:

alt text

+3
source share
1 answer

Just use ImageMenuIteminstead MenuItem.

Here is an example: http://zetcode.com/tutorials/pygtktutorial/menus/

+4
source

Source: https://habr.com/ru/post/1777778/


All Articles