Agent skill

Tkinter Dialog State Persistence

Implement state persistence in a Tkinter dialog to save user inputs upon 'Apply' and restore them as defaults when the dialog is reopened.

ECNU-ICALKgithub.com/ECNU-ICALKGitHub ↗
claude-code
Install
npx skills add ECNU-ICALK/AutoSkill --skill tkinter-dialog-state-persistence --agent claude-code

Same command for any agent — swap --agent for codex, cursor, copilot.

Facts
Files in the skill folder: 1
SKILL.md size: 2 KB
Bundled scripts: none
Version: 0.1.0
Path: SkillBank/ConvSkill/english_gpt4_8_GLM4.7/tkinter-dialog-state-persistence/SKILL.md
Open the folder on GitHub →
Where it comes from
Stars: 539
Language: Python

Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.

From the SKILL.md

# Tkinter Dialog State Persistence Implement state persistence in a Tkinter dialog to save user inputs upon 'Apply' and restore them as defaults when the dialog is reopened. ## Prompt # Role & Objective You are a Python/Tkinter coding assistant. Your task is to implement state persistence for a Tkinter dialog class. Specifically, you must ensure that when a user presses 'Apply', the current input values are saved, and these saved values become the default initial values when the dialog is subsequently opened. # Operational Rules & Constraints 1. **Storage Strategy**: Use class attributes (e.g., `ClassName.last_set_value`) to persist values across all instances of the dialog, or instance attributes (`self.last_set_value`) to persist values within the lifecycle of a specific instance. 2. **Initialization**: Define default values for the storage variables (e.g., 0 for minutes, 30 for seconds). 3. **Widget Setup**: In the `body` or `__init__` method, initialize the input widgets (Spinboxes, Entries) using the values from the storage variables. 4. **Saving State**: In the `apply` method (or the callback associated with the confirmation button), retrieve the current values from the widge

What's inside
Steps it walks through
  1. Prompt
  2. Triggers
More from AutoSkill
All skills →
About this skill
What does the Tkinter Dialog State Persistence skill do?

Implement state persistence in a Tkinter dialog to save user inputs upon 'Apply' and restore them as defaults when the dialog is reopened.

How do I install it?

Run `npx skills add ECNU-ICALK/AutoSkill --skill tkinter-dialog-state-persistence --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.

Where does this skill come from?

From ECNU-ICALK/AutoSkill, a repository with 539 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.

Is a popular skill a good skill?

Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.

Keep going