Skip to content

Commit 369ea57

Browse files
author
Antonino Tramontana
committed
added pause block python code
1 parent bb493f0 commit 369ea57

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/components/Activity.vue

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1801,6 +1801,12 @@ export default {
18011801
}
18021802
};
18031803
1804+
Blockly.Python['coderbot_music_pause'] = function(block) {
1805+
var value_duration = Blockly.Python.valueToCode(block, 'duration', Blockly.Python.ORDER_ATOMIC);
1806+
var code = 'get_music().play_pause("'+value_duration+'")\n';
1807+
return code;
1808+
};
1809+
18041810
18051811
Blockly.Python['coderbot_audio_listen'] = function(block) {
18061812
// Boolean values true and false.

0 commit comments

Comments
 (0)