您的位置:首页 > 编程语言 > Python开发

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()
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: