An Introduction To Tkinter

本文提供了一个关于Tkinter的详细介绍,涵盖了从基本概念到高级应用的全面内容,包括Tkinter的入门、类引用、组件配置、样式、事件绑定、应用窗口、标准对话框等核心主题。它旨在帮助开发者深入了解Tkinter,从而更有效地进行Python GUI编程。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

http://effbot.org/tkinterbook/tkinter-index.htm#introduction

 

 

An Introduction To Tkinter

This is an incomplete draft version, last updated in November 2005 .

You can find an earlier but more complete version in the PythonWare library .

Note: This is the source document used to generate the PythonWare version of An Introduction To Tkinter . Note that the links below point to documents that are being edited; in other words, they may be incomplete, broken, or otherwise messed up.

Part I. Introduction #

Note: Some images and sample scripts are missing from this section. Some links may be broken.

What’s Tkinter?
Hello, Tkinter
Hello, Again
Tkinter Classes
Widget Configuration
Widget Styling
Events and Bindings
Application Windows
Standard Dialogs
Dialog Windows

Part II. Class Reference #

The Button Widget
The Canvas Widget
The Checkbutton Widget
The Entry Widget
The Frame Widget
The Label Widget
The LabelFrame Widget
The Listbox Widget
The Menu Widget
The Menubutton Widget
The Message Widget
The OptionMenu Widget
The PanedWindow Widget
The Radiobutton Widget
The Scale Widget
The Scrollbar Widget
The Spinbox Widget
The Text Widget
The Toplevel Widget
Basic Widget Methods
Toplevel Window Methods

The Grid Geometry Manager
The Pack Geometry Manager
The Place Geometry Manager

The BitmapImage Class
The PhotoImage Class

Variable Wrappers (BooleanVar, DoubleVar, IntVar, StringVar)

Part III. The BWidget Extension Library #

Note: Incomplete.

The BWidget Button Widget
The BWidget Entry Widget
The BWidget Label Widget
The BWidget Tree Widget

Part IV. The Widget Construction Kit #

Note: Incomplete.

The Widget Construction Kit

 

[comment on/vote for this article ]

Comment:

Thank's for the Tkinter Manual! It a constant companion whenever I program a Tkinter GUI.

Posted by James Stroud (2007-03-23)

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值