# Class k.u.w.c.ContextMenuItem(gtk.ImageMenuItem):

Part of kiwi.ui.widgets.contextmenu View In Hierarchy

No class docstring

Method | __init__ | An menu item with an (option) icon.

def __init__(self, label, stock=None):

An menu item with an (option) icon.

you can use this in three different ways:

ContextMenuItem('foo') ContextMenuItem('foo', gtk.STOCK_PASTE) ContextMenuItem(gtk.STOCK_PASTE)

The first will display an label 'foo'. The second will display the same label with the paste icon, and the last will display the paste icon with the default paste label