Changes

Jump to navigation Jump to search
Line 28: Line 28:  
     def _custom_clicked_cb(self, widget):
 
     def _custom_clicked_cb(self, widget):
 
         #Begin any callback code here
 
         #Begin any callback code here
 +
 +
 +
=== 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.
 +
 +
      #Set the tooltip for the customButton to "Custom"
 +
      customButton.set_tooltip(_('Custom'))
Anonymous user

Navigation menu