Changes
Jump to navigation
Jump to search
Line 39:
Line 39:
− ** undo -- the undo button+
− ** redo -- the redo button+
− ** copy -- the copy button+
− ** paste -- the paste button+
− ** separator -- A separator between undo/redo and copy/paste+
Development Team/Almanac/sugar.activity.activity (view source)
Revision as of 10:25, 2 June 2008
, 10:25, 2 June 2008→How do I add a standard edit toolbar to my activity?
=== 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
* redo -- the redo button
* copy -- the copy button
* paste -- the paste button
* separator -- A separator between undo/redo and copy/paste
You can create a standard edit tool bar using code similar to the following in the __init__ method of your activity's class after you have created a toolbox:
You can create a standard edit tool bar using code similar to the following in the __init__ method of your activity's class after you have created a toolbox: