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.
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.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# 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
- Prompt
- Triggers
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.
