k.u.w.c.ContextMenuItem(gtk.ImageMenuItem) : class documentation

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

API Documentation for Kiwi, generated by pydoctor at 2010-05-20 02:10:57.