-
Notifications
You must be signed in to change notification settings - Fork 0
/
window.py
73 lines (57 loc) · 1.46 KB
/
window.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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
from tkinter import *
def btn_clicked():
print("Button Clicked")
window = Tk()
window.geometry("1920x1080")
window.configure(bg = "#FFFFFF")
window.overrideredirect(True) #pencere bölmesini gizler kücült kapat buttonlarının olduğu windows formunu
canvas = Canvas(
window,
bg = "#FFFFFF",
height = 1080,
width = 1920,
bd = 0,
highlightthickness = 0,
relief = "ridge")
canvas.place(x = 0, y = 0)
background_img = PhotoImage(file = f"background.png")
background = canvas.create_image(
531.5, 697.0,
image=background_img)
img0 = PhotoImage(file = f"img0.png")
b0 = Button(
image = img0,
borderwidth = 0,
highlightthickness = 0,
command = btn_clicked,
relief = "flat")
b0.place(
x = 251, y = 611,
width = 400,
height = 50)
entry0_img = PhotoImage(file = f"img_textBox0.png")
entry0_bg = canvas.create_image(
451.0, 407.0,
image = entry0_img)
entry0 = Entry(
bd = 0,
bg = "#ffffff",
highlightthickness = 0)
entry0.place(
x = 256.0, y = 382,
width = 390.0,
height = 48)
entry1_img = PhotoImage(file = f"img_textBox1.png")
entry1_bg = canvas.create_image(
451.0, 513.0,
image = entry1_img)
entry1 = Entry(
bd = 0,
bg = "#ffffff",
highlightthickness = 0)
entry1.place(
x = 256.0, y = 488,
width = 390.0,
height = 48)
window.resizable(False, False)
window.mainloop()