Changes

no edit summary
Line 30: Line 30:     
=== 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
Line 46: Line 46:  
         # 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
Anonymous user