Changes

Jump to navigation Jump to search
Line 32: Line 32:     
=== What is a tooltip and how do I set it for my tool button? ===
 
=== What is a tooltip and how do I set it for my tool button? ===
A tooltip is a brief textual description of a tool button that pops up when the mouse cursor is on the toolbutton and the user right-clicks. It is meant to be descriptive so that a user understands what a toolbutton does if it isn't immediately obvious from the icon.  
+
A tooltip is a brief textual description of a tool button that pops up when the mouse cursor is on the toolbutton and the user right-clicks. It is meant to be descriptive so that a user understands what a toolbutton does if it isn't immediately obvious from the icon. (Note that in the example below, the gettext syntax is used so that the tooltip will be included in the POT file for the project and thus it can be localized.)
    
       #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? ===
 
=== How do I reset the icon displayed for my tool button? ===

Navigation menu