class documentation

class IconChooserButton(Gtk.Button): (source)

View In Hierarchy

Widget to allow the user to choose an icon. Intended e.g. for the dialog to configure a custom tool to set an icon for the tool. Shows a button with an image of the icon which opens up a file dialog when clicked.
Method __init__ Constructor
Method do_clicked Undocumented
Method get_file Get the selected icon file @returns: a File object
Method set_file Set the file to display in the chooser button @param file: a File object
Instance Variable file Undocumented
Instance Variable image Undocumented
def __init__(self, stock=Gtk.STOCK_MISSING_IMAGE, pixbuf=None): (source)
Constructor
Parameters
stockinitial stock icon (until an icon is selected)
pixbufinitial image as pixbuf (until an icon is selected)
def do_clicked(self): (source)

Undocumented

def get_file(self): (source)
Get the selected icon file
Returns
a File object
def set_file(self, file): (source)
Set the file to display in the chooser button
Parameters
filea File object
file = (source)

Undocumented

image = (source)

Undocumented