feat(boards): python_mixpy下更新Turtle模块

增加screen.update、turtle.title和turtle.setup接口对应图形块
This commit is contained in:
王立帮
2026-01-04 04:08:41 +08:00
parent c4abb15ba7
commit 7d0a87fc09
6 changed files with 108 additions and 6 deletions

View File

@@ -1911,13 +1911,22 @@
</shadow>
</value>
</block>
<block type="turtle_bgcolor_hex_new">
<value name="VAR">
<block type="turtle_color_seclet">
<field name="COLOR">#ff0000</field>
</block>
<block type="turtle_title">
<value name="TITLE">
<shadow type="text">
<field name="TEXT">#FF0000</field>
<field name="TEXT">Mixly</field>
</shadow>
</value>
</block>
<block type="turtle_setup">
<value name="WIDTH">
<shadow type="math_number">
<field name="NUM">800</field>
</shadow>
</value>
<value name="HEIGHT">
<shadow type="math_number">
<field name="NUM">600</field>
</shadow>
</value>
</block>
@@ -1934,6 +1943,16 @@
<block type="logic_null"></block>
</value>
</block>
<block type="turtle_bgcolor_hex_new">
<value name="VAR">
<block type="turtle_color_seclet">
<field name="COLOR">#ff0000</field>
</block>
<shadow type="text">
<field name="TEXT">#FF0000</field>
</shadow>
</value>
</block>
<block type="turtle_pencolor_hex_new">
<value name="TUR">
<shadow type="variables_get">
@@ -2061,6 +2080,13 @@
</shadow>
</value>
</block>
<block type="turtle_update">
<value name="TUR">
<shadow type="variables_get">
<field name="VAR">screen</field>
</shadow>
</value>
</block>
<block type="turtle_onkey">
<value name="TUR">
<shadow type="variables_get">