-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaboutTeam1.py
48 lines (41 loc) · 1.33 KB
/
aboutTeam1.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# import tkinter module
from tkinter import *
from tkinter.ttk import *
# creating main tkinter window/toplevel
master = Tk()
master.configure(bg='black')
# # this will create a label widget
# l1 = Label(master, text = "Height")
# l2 = Label(master, text = "Width")
#
# # grid method to arrange labels in respective
# # rows and columns as specified
# l1.grid(row = 0, column = 0, sticky = W, pady = 2)
# l2.grid(row = 1, column = 0, sticky = W, pady = 2)
#
# # entry widgets, used to take entry from user
# e1 = Entry(master)
# e2 = Entry(master)
#
# # this will arrange entry widgets
# e1.grid(row = 0, column = 1, pady = 2)
# e2.grid(row = 1, column = 1, pady = 2)
#
# # checkbutton widget
# c1 = Checkbutton(master, text = "Preserve")
# c1.grid(row = 2, column = 0, sticky = W, columnspan = 2)
# adding image (remember image should be PNG and not JPG)
img = PhotoImage(file = r"team_pic2.png")
img1 = img.subsample(2, 2)
# setting image with the help of label
Label(master, image = img1).grid(row = 0, column = 2,
columnspan = 2, rowspan = 2, padx = 5, pady = 5)
# button widget
b1 = Button(master, text = "Zoom in")
b2 = Button(master, text = "Zoom out")
# arranging button widgets
b1.grid(row = 2, column = 2, sticky = E)
b2.grid(row = 2, column = 3, sticky = E)
# infinite loop which can be terminated
# by keyboard or mouse interrupt
mainloop()