一键导入
pydartsnut-widget-loop
Dartsnut widget main.py guidance for Pillow rendering, widget_params, and update loop behavior.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Dartsnut widget main.py guidance for Pillow rendering, widget_params, and update loop behavior.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Dartsnut asset manifest, loader-helper, placeholder, and apply-mode workflow for art-bearing entities.
Root conf.json schema, defaults, size rules, preview handling, and reload requirements for Dartsnut projects.
Dartsnut workspace scaffold rules, just-in-time skill loading, file constraints, and emulator verification workflow.
Dartsnut display and framebuffer mapping rules for panels, physical screens, layout, clipping, and fonts.
Legacy Dartsnut runtime index that routes to the granular pydartsnut, conf, display, and asset skills.
Pixel-perfect compact UI guidance for console-style Dartsnut games and widgets.
| name | pydartsnut-widget-loop |
| description | Dartsnut widget main.py guidance for Pillow rendering, widget_params, and update loop behavior. |
| license | MIT |
Load when writing or editing widget main.py. Requires pydartsnut-core and conf-contract.
pygame in widget code.Image, ImageDraw, optional ImageFont) only.Dartsnut() instance.widget_params (via dartsnut.widget_params / contract in widget-creator template).while dartsnut.running: loop.Image matching conf.json size.dartsnut.update_frame_buffer(frame) each iteration.time.sleep(...) to limit update rate.Build main.py to satisfy the user's request in conversation history, not a fixed multi-step checklist. Use ImageDraw, fonts, and assets when the request needs them — load widget-fonts before copying or loading font files.
A solid-color loop with no user-visible behavior is only appropriate when the user explicitly asked for a minimal placeholder.
Handle missing or ambiguous params with safe defaults. Keep setup, render/update, and main() clear.
After material changes to main.py or conf.json, reload_emulator then get_emulator_logs. Fix Traceback / SyntaxError / ModuleNotFoundError before finishing.