1. 首页
  2. 数据库
  3. 其它
  4. tkinter控件放置pack、grid、place

tkinter控件放置pack、grid、place

上传者: 2021-01-16 07:32:54上传 PDF文件 37.94KB 热度 20次
原文地址 分类目录——tkinter 先看效果 .pack()方式放置 .grid()方式放置 .place()方式放置 应用实例 .pack # # .pack()方式放置 tk.Label(window, text='1', bg='red').pack(side='top') #上 # pack支持的属性after, anchor, before, expand, fill, in, ipadx, ipady, padx, pady, side tk.Label(window, text='1', bg='red').pack(side='bottom')#下 tk.Label
下载地址
用户评论