Changes
Jump to navigation
Jump to search
Line 28:
Line 28:
+
+
+
+
+
+
+
Development Team/Almanac/sugar.graphics.toolbutton (view source)
Revision as of 10:22, 2 June 2008
, 10:22, 2 June 2008→Class: ToolButton ([http://www.pygtk.org/docs/pygtk/ gtk.ToolButton])
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'))