tkinter使用按钮
来源:互联网 发布:工程三维设计软件 编辑:程序博客网 时间:2024/06/05 18:43
一 代码
import tkinter
root = tkinter.Tk()
button1 = tkinter.Button(root,
anchor =tkinter.E,
text="Button1",
width =40,
height =5)
button1.pack()
button2 = tkinter.Button(root,
text="Button2",
bg ='blue')
button2.pack()
button3 = tkinter.Button(root,
text="Button3",
width =14,
height =1)
button3.pack()
button4 = tkinter.Button(root,
text="Button4",
width =60,
height =5,
state = tkinter.DISABLED)
button4.pack()
root.mainloop()
二 运行结果
阅读全文
0 0
- tkinter使用按钮
- python3使用tkinter做界面之按钮Button
- Tkinter 按钮基本功能实现
- 小白学tkinter(按钮Button)
- Python 窗体(tkinter)按钮 位置
- Tkinter中的button使用
- 使用wxPython还是Tkinter
- python的tkinter使用
- Tkinter-ListBox基本使用
- Tkinter的标签使用
- tkinter使用文本框
- tkinter使用标签
- tkinter使用菜单
- 小白学tkinter(多选按钮Checkbutton)
- Tkinter学习笔记之Radiobutton选择按钮
- 使用Tkinter做个日历
- Tkinter中的checkbutton使用示例
- 使用Tkinter做个日历
- tkinter创建简单的窗口和向窗口中添加组件
- genymotion连不上网
- nginx+tomcat
- 周志华《机器学习》西瓜书第一章绪论第一部分
- Kubernetes对象之Replication Controller(RC)和Replica Sets(RS)
- tkinter使用按钮
- BaseActivity的基类
- PCB设计时覆铜应注意的问题
- 你需要了解的前端框架有哪些
- 工具使用:CentOS6上vsftpd安装使用
- tkinter使用文本框
- tkinter使用标签
- Computer Vision 代码整理
- mybatis-xml中写sql语句