Changes
Jump to navigation
Jump to search
Line 30:
Line 30:
− +
Line 46:
Line 46:
+
+
+
+
+
+
Development Team/Almanac/sugar.activity.activity (view source)
Revision as of 10:39, 29 May 2008
, 10:39, 29 May 2008no edit summary
=== How do I add a standard edit toolbar to my activity? ===
=== How do I add a standard edit toolbar to my activity? ===
The activity package has a standard edit toolbar with the following Members:
The activity package has a standard edit toolbar with the following members:
* undo -- the undo button
* undo -- the undo button
* redo -- the redo button
* redo -- the redo button
# And make it visible:
# And make it visible:
self._edit_toolbar.show()
self._edit_toolbar.show()
=== How do I hide a button in the edit toolbar that is not needed in my activity? ===
The following code shows how to hide the undo button. You can also apply similar code to hide the redo, copy and paste buttons.
#hide the undo button
self._edit_toolbar.undo.props.visible=False