Stock Items — prebuilt common menu/toolbar items and corresponding icons
Stock items represent commonly-used menu or toolbar items such as
"Open" or "Exit". Each stock item is identified by a stock ID; stock IDs are
just strings, but macros such as gtk.STOCK_OPEN are
provided to avoid typing mistakes in the strings. Applications can register
their own stock items in addition to those built-in to
PyGTK.
The stock items are:
| 
 |  Available in GTK+ 2.6 and above. | 
| 
 |  | 
| 
 |  | 
| 
 |  | 
| 
 |  | 
| 
 |  | 
| 
 |  | 
| 
 |  | 
| 
 |  Available in GTK+ 2.2 and above. | 
| 
 |  | 
| 
 |  Available in GTK+ 2.6 and above. | 
| 
 |  | 
| 
 |  | 
| 
 |  | 
| 
 |  Available in GTK+ 2.4 and above. | 
| 
 |  | 
| 
 |  | 
| 
 |  | 
| 
 |  | 
| 
 |  Available in GTK+ 2.6 and above. | 
| 
 |  Available in GTK+ 2.6 and above. | 
| 
 |  | 
| 
 |  | 
| 
 |  Available in GTK+ 2.6 and above. | 
| 
 |  | 
| 
 |  Available in GTK+ 2.6 and above. | 
| 
 |  | 
| 
 |  | 
| 
 |  | 
| 
 |  Available in GTK+ 2.8 and above. | 
| 
 |  | 
| 
 |  | 
| 
 |  | 
| 
 |  | 
| 
 |  | 
| 
 |  | 
| 
 |  | 
| 
 |  | 
| 
 |  Available in GTK+ 2.4 and above | 
| 
 |  | 
| 
 |  | 
| 
 |  Available in GTK+ 2.4 and above. | 
| 
 |  | 
| 
 |  Available in GTK+ 2.8 and above. | 
| 
 |  | 
| 
 |  RTL version is  | 
| 
 |  | 
| 
 |  | 
| 
 |  | 
| 
 |  | 
| 
 |  Available in GTK+ 2.8 and above. | 
| 
 |  Available in GTK+ 2.6 and above. | 
| 
 |  Available in GTK+ 2.6 and above. | 
| 
 |  Available in GTK+ 2.6 and above. | 
| 
 |  RTL version is  Available in GTK+ 2.6 and above. | 
| 
 |  Available in GTK+ 2.6 and above. | 
| 
 |  Available in GTK+ 2.6 and above. | 
| 
 |  Available in GTK+ 2.6 and above. | 
| 
 |  Available in GTK+ 2.6 and above. | 
| 
 |  | 
| 
 |  Available in GTK+ 2.4 and above. | 
| 
 |  | 
| 
 |  | 
| 
 |  | 
| 
 |  | 
| 
 |  Available in GTK+ 2.14 and above. | 
| 
 |  | 
| 
 |  | 
| 
 |  | 
| 
 |  Available in GTK+ 2.14 and above. | 
| 
 |  Available in GTK+ 2.14 and above. | 
| 
 |  | 
| 
 |  Available in GTK+ 2.14 and above. | 
| 
 |  Available in GTK+ 2.14 and above. | 
| 
 |  | 
| 
 |  | 
| 
 |  RTL version is  | 
| 
 |  | 
| 
 |  | 
| 
 |  RTL version is  | 
| 
 |  | 
| 
 |  | 
| 
 |  | 
| 
 |  | 
| 
 |  | 
| 
 |  | 
| 
 |  | 
| 
 |  | 
| 
 |  | 
| 
 |  RTL version is  | 
| 
 |  | 
| 
 |  RTL version is  | 
| 
 |  Available in GTK+ 2.4 and above. | 
| 
 |  | 
| 
 |  | 
| 
 |  | 
| 
 |  | 
| 
 |  | 
    def gtk.stock_add(items)| 
 | a list or tuple containing 5-tuples of stock items | 
The gtk.stock_add() function registers each
of the stock items in the list or tuple specified by
items. The stock items are specified by a 5-tuple
containing:
gtk.gdk.Keymap)
	  Together with the modifiers specifies an accelerator.If an item already exists with the same stock ID as one of the items, the old item gets replaced.
    def gtk.stock_lookup(stock_id)| 
 | a stock item name | 
| Returns : | a 5-tuple containing the stock item info or Noneifstock_idis
	  unknown | 
The gtk.stock_lookup() function looks up
the stock item identified by stock_id and returns a
5-tuple containing its information. If stock_id is
not known this function returns None. See the gtk.stock_add()
function for more detail.
    def gtk.stock_list_ids()| Returns : | a list of known stock IDs | 
The gtk.stock_list_ids() function returns a
list containing all of the known stock IDs added to a gtk.IconFactory
or registered with the gtk.stock_add()
function.