Class: BlockPyToolbar

BlockPyToolbar

new BlockPyToolbar(main, tag)

An object that manages the main toolbar, including the different mode buttons. This doesn't actually have many responsibilities after the initial load.
This:
Parameters:
Name Type Description
main Object The main BlockPy instance
tag HTMLElement The HTML object this is attached to.
Source:

Methods

activateToolbar()

Register click events for more complex toolbar actions.
Source:

addProgram(name)

Add a new button for the given filename in the Programs button group. These programs will be things like "__main__".
Parameters:
Name Type Description
name String The name of the new program.
Source:

hidePrograms()

Hide the programs button group.
Source:

showPrograms()

Show the programs button group.
Source: