ワンクリックで
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.