Changes
Jump to navigation
Jump to search
Line 17:
Line 17:
+
Line 28:
Line 29:
+
Line 34:
Line 36:
+
Development Team/Almanac/sugar.graphics.toolbutton (view source)
Revision as of 15:52, 2 June 2008
, 15:52, 2 June 2008no edit summary
self._edit_toolbar.insert(customButton, -1)
self._edit_toolbar.insert(customButton, -1)
customButton.show()
customButton.show()
=== How do I connect my tool button to a callback? ===
=== How do I connect my tool button to a callback? ===
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? ===
=== What is a tooltip and how do I set it for my tool button? ===
#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? ===