Python tkinter使用指南

2024-10-11 21:52:23

1、首先导入tkinter

Python tkinter使用指南

2、在变量fbl中输入大小,乘号用小写'x'不用'*'

Python tkinter使用指南

3、产生窗口

Python tkinter使用指南

4、使用变量fbl定义大小

Python tkinter使用指南

5、添加文本

Python tkinter使用指南

6、文本标签位置

Python tkinter使用指南

7、让主程序持续运行

Python tkinter使用指南

8、Ctrl+S保存,F5运行

猜你喜欢