Changes

no edit summary
Line 35: Line 35:  
       #Set the tooltip for the customButton to "Custom"
 
       #Set the tooltip for the customButton to "Custom"
 
       customButton.set_tooltip(_('Custom'))
 
       customButton.set_tooltip(_('Custom'))
 +
 +
=== How do I reset the icon displayed for my tool button? ===
 +
Your first argument to the constructor for the ToolButton class will set the initial icon used for your tool button. If you decide to change your tool button's icon later, then you must get a handle on the tool button object and do the following:
 +
 +
        #Reset the icon displayed for customButton
 +
        customButton.set_icon("edit-custom");
Anonymous user