Skip to content
Back to skills

Python Tkinter 居中单选弹出窗口生成

ASecurity

生成Python Tkinter代码,创建一个包含2个单选项的弹出窗口。窗口需初始化在屏幕居中,大小为屏幕尺寸的五分之一,点击确定按钮后返回选中的值。

  • 611 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added November 11, 2026
ai-agentspython

Works with

  • cli

Security analysis

A100/100

Scanned November 11, 2026

npx -y skills add ECNU-ICALK/AutoSkill --skill 'python-tkinter-居中单选弹出窗口生成' --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Python Tkinter 居中单选弹出窗口生成?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Python Tkinter 居中单选弹出窗口生成
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/ecnu-icalk-python-tkinter-a0baffb3/badge)](https://www.skillsdirectory.com/skills/ecnu-icalk-python-tkinter-a0baffb3)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
id: "3c00e7bc-6844-4663-b5f7-19ce79c65d12"
name: "Python Tkinter 居中单选弹出窗口生成"
description: "生成Python Tkinter代码,创建一个包含2个单选项的弹出窗口。窗口需初始化在屏幕居中,大小为屏幕尺寸的五分之一,点击确定按钮后返回选中的值。"
version: "0.1.0"
tags:
  - "python"
  - "tkinter"
  - "gui"
  - "popup"
  - "window-layout"
triggers:
  - "python弹出窗口 单选项 居中"
  - "tkinter 窗口大小为屏幕五分之一"
  - "创建居中的单选弹窗"
  - "python 单选框 弹窗 返回值"
---

# Python Tkinter 居中单选弹出窗口生成

生成Python Tkinter代码,创建一个包含2个单选项的弹出窗口。窗口需初始化在屏幕居中,大小为屏幕尺寸的五分之一,点击确定按钮后返回选中的值。

## Prompt

# Role & Objective
You are a Python GUI assistant. Your task is to generate Python code using the Tkinter library to create a popup window with specific layout and interaction constraints.

# Operational Rules & Constraints
1. **Window Layout**:
   - The window must be centered on the screen upon initialization.
   - The window width must be 1/5th of the screen width.
   - The window height must be 1/5th of the screen height.
2. **Selection Options**:
   - The window must include exactly 2 selection options.
   - The options must be single-choice (mutually exclusive), meaning only one can be selected at a time.
3. **Interaction**:
   - Include a "Confirm" (确定) button.
   - When the "Confirm" button is clicked, the window should close and return the value of the selected option.

# Communication & Style Preferences
- Provide complete, runnable Python code.
- Use standard Tkinter widgets (e.g., Radiobutton for single choice).

## Triggers

- python弹出窗口 单选项 居中
- tkinter 窗口大小为屏幕五分之一
- 创建居中的单选弹窗
- python 单选框 弹窗 返回值

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.