Skip to content

Commit b64bf03

Browse files
committed
fix:Modify blockly message control parameters
1 parent 45f82f9 commit b64bf03

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

xarm/tools/blockly/_blockly_handler.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -363,7 +363,7 @@ def _handle_app_studio_traj(self, block, indent=0, arg_map=None):
363363
def _handle_tool_message(self, block, indent=0, arg_map=None):
364364
fields = self._get_nodes('field', block)
365365
color = json.dumps(fields[0].text, ensure_ascii=False) if len(fields) > 1 else 'white'
366-
msg = json.dumps(fields[1].text if fields[-1].text is not None else '', ensure_ascii=False)
366+
msg = json.dumps(fields[2].text if fields[-1].text is not None else '', ensure_ascii=False)
367367
if self._highlight_callback is not None:
368368
self._append_main_code('print({}, color={})'.format(msg, color), indent + 2)
369369
else:

0 commit comments

Comments
 (0)