Skip to content

Commit c24aa52

Browse files
author
Mofan Zhou
committed
create tk12
1 parent dab4773 commit c24aa52

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

tkinterTUT/tk12_position.py

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# View more python learning tutorial on my Youtube and Youku channel!!!
2+
3+
# Youtube video tutorial: https://www.youtube.com/channel/UCdyjiB5H8Pu7aDTNVXTTpcg
4+
# Youku video tutorial: http://i.youku.com/pythontutorial
5+
6+
import tkinter as tk
7+
8+
window = tk.Tk()
9+
window.geometry('200x200')
10+
11+
#canvas = tk.Canvas(window, height=150, width=500)
12+
#canvas.grid(row=1, column=1)
13+
#image_file = tk.PhotoImage(file='welcome.gif')
14+
#image = canvas.create_image(0, 0, anchor='nw', image=image_file)
15+
16+
#tk.Label(window, text='1').pack(side='top')
17+
#tk.Label(window, text='1').pack(side='bottom')
18+
#tk.Label(window, text='1').pack(side='left')
19+
#tk.Label(window, text='1').pack(side='right')
20+
21+
#for i in range(4):
22+
#for j in range(3):
23+
#tk.Label(window, text=1).grid(row=i, column=j, padx=10, pady=10)
24+
25+
tk.Label(window, text=1).place(x=20, y=10, anchor='nw')
26+
27+
window.mainloop()

0 commit comments

Comments
 (0)