Changes
Jump to navigation
Jump to search
Line 68:
Line 68:
+
+
Development Team/Almanac/sugar.activity.activity (view source)
Revision as of 10:24, 2 June 2008
, 10:24, 2 June 2008→How do I disable and enable a button on the edit toolbar?
#disable the use of the copy button for now.
#disable the use of the copy button for now.
self._edit_toolbar.copy.set_sensitive(False)
self._edit_toolbar.copy.set_sensitive(False)
You can enable buttons by simply passing True to the set_sensitive() method.