Skip to content

Commit

Permalink
Add in empty toolbox category for error situations
Browse files Browse the repository at this point in the history
  • Loading branch information
acbart committed Dec 31, 2020
1 parent c2368d0 commit e38f090
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion dist/block_mirror.js
Original file line number Diff line number Diff line change
Expand Up @@ -2716,7 +2716,7 @@ TOOLBOX_CATEGORY.CALCULATIONS = {
TOOLBOX_CATEGORY.OUTPUT_WITH_PLOTTING = {
name: "Output",
colour: "PLOTTING",
blocks: ["print(___)", "plt.plot(___)", "plt.scatter(___, ___)", "plt.hist(___)", "plt.show()", "plt.title(___)", "plt.xlabel(___)", "plt.ylabel(___)"]
blocks: ["print(___)", "plt.plot(___)", "plt.scatter(___, ___)", "plt.hist(___)", "plt.bar(___, ___)", "plt.show()", "plt.title(___)", "plt.xlabel(___)", "plt.ylabel(___)"]
};
TOOLBOX_CATEGORY.TURTLES = {
name: "Turtles",
Expand Down Expand Up @@ -2745,6 +2745,12 @@ TOOLBOX_CATEGORY.DICTIONARIES = {
blocks: ["{'1st key': ___, '2nd key': ___, '3rd key': ___}", "{}", "___['key']"]
};
BlockMirrorBlockEditor.prototype.TOOLBOXES = {
//******************************************************
'empty': [{
"name": "Empty Toolbox",
"colour": "PYTHON",
"blocks": []
}],
//******************************************************
'minimal': [// TODO: What should live in here?
TOOLBOX_CATEGORY.VARIABLES],
Expand Down

0 comments on commit e38f090

Please sign in to comment.