python位置
2017-01-22 00:05
323 查看
# View more python learning tutorial on my Youtube and Youku channel!!!
# Youtube video tutorial: https://www.youtube.com/channel/UCdyjiB5H8Pu7aDTNVXTTpcg
# Youku video tutorial: http://i.youku.com/pythontutorial
import tkinter as tk
window = tk.Tk()
window.geometry('200x200')
#canvas = tk.Canvas(window, height=150, width=500)
#canvas.grid(row=1, column=1)
#image_file = tk.PhotoImage(file='welcome.gif')
#image = canvas.create_image(0, 0, anchor='nw', image=image_file)
tk.Label(window, text='1').pack(side='top')
tk.Label(window, text='1').pack(side='bottom')
tk.Label(window, text='1').pack(side='left')
tk.Label(window, text='1').pack(side='right')
#for i in range(4):
#for j in range(3):
#tk.Label(window, text=1).grid(row=i, column=j, padx=10, pady=10)
#tk.Label(window, text=1).place(x=20, y=10, anchor='nw')
window.mainloop()
# Youtube video tutorial: https://www.youtube.com/channel/UCdyjiB5H8Pu7aDTNVXTTpcg
# Youku video tutorial: http://i.youku.com/pythontutorial
import tkinter as tk
window = tk.Tk()
window.geometry('200x200')
#canvas = tk.Canvas(window, height=150, width=500)
#canvas.grid(row=1, column=1)
#image_file = tk.PhotoImage(file='welcome.gif')
#image = canvas.create_image(0, 0, anchor='nw', image=image_file)
tk.Label(window, text='1').pack(side='top')
tk.Label(window, text='1').pack(side='bottom')
tk.Label(window, text='1').pack(side='left')
tk.Label(window, text='1').pack(side='right')
#for i in range(4):
#for j in range(3):
#tk.Label(window, text=1).grid(row=i, column=j, padx=10, pady=10)
#tk.Label(window, text=1).place(x=20, y=10, anchor='nw')
window.mainloop()
相关文章推荐
- 【Python】提取网页正文内容的相关模块与技术
- python matplotlib及sklearn安装
- filter、map、reduce、lambda
- enumerate函数
- itertools模块
- pandas
- python中使用txt文本保存和读取变量
- python的几种有用的函数 itertools库
- Python类型和运算(四)【元组】
- Python 多进程和多线程
- Python 多线程常用属性和方法
- python学习笔记之编写readConfig读写配置文件
- Python学习札记(一) 初始python
- 【Python学习】之 画小树
- python格式化输出学习
- python进制转换——py学习笔记
- Python标准库13 循环器 (itertools)学习
- 如何动态调试Python的第三方库
- BeautifulSoup笔记
- python类学习笔记