david4dev
david4dev

Reputation: 4914

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 an icon?

Like this:

alt text

Upvotes: 3

Views: 532

Answers (1)

bbtrb
bbtrb

Reputation: 4085

Simply use ImageMenuItem instead of MenuItem.

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

Upvotes: 3

Related Questions