Changes

Line 9: Line 9:  
# Use the code below to guide you on how to then create your button programmatically and add it to a tool bar (we add it to an EditToolbar object that was presumably created already in our code).  
 
# Use the code below to guide you on how to then create your button programmatically and add it to a tool bar (we add it to an EditToolbar object that was presumably created already in our code).  
   −
        #### CUSTOM TOOL BUTTON
   
         from sugar.graphics.toolbutton import ToolButton
 
         from sugar.graphics.toolbutton import ToolButton
 
         ...
 
         ...
 +
        #### CUSTOM TOOL BUTTON 
 
         #Create a custom tool button and add it to the edit toolbar
 
         #Create a custom tool button and add it to the edit toolbar
 
         customButton = ToolButton('edit-custom')
 
         customButton = ToolButton('edit-custom')
Anonymous user