-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathgui.py
75 lines (59 loc) · 1.32 KB
/
gui.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
74
75
# This file was generated by the Tkinter Designer by Parth Jadhav
# https://github.com/ParthJadhav/Tkinter-Designer
from pathlib import Path
# from tkinter import *
# Explicit imports to satisfy Flake8
from tkinter import Tk, Canvas, Entry, Text, Button, PhotoImage
OUTPUT_PATH = Path(__file__).parent
ASSETS_PATH = OUTPUT_PATH / Path(r"/Users/ralph/Downloads/tkdesigner/build/assets/frame0")
def relative_to_assets(path: str) -> Path:
return ASSETS_PATH / Path(path)
window = Tk()
window.geometry("1510x990")
window.configure(bg = "#FFFFFF")
canvas = Canvas(
window,
bg = "#FFFFFF",
height = 990,
width = 1510,
bd = 0,
highlightthickness = 0,
relief = "ridge"
)
canvas.place(x = 0, y = 0)
canvas.create_text(
65.0,
75.0,
anchor="nw",
text="Ein Beispieltext",
fill="#000000",
font=("Inter", 36 * -1)
)
canvas.create_rectangle(
446.0,
329.0,
846.0,
432.0,
fill="#000000",
outline="")
entry_image_1 = PhotoImage(
file=relative_to_assets("entry_1.png"))
entry_bg_1 = canvas.create_image(
710.0,
119.5,
image=entry_image_1
)
entry_1 = Entry(
bd=0,
bg="#D9D9D9",
fg="#000716",
highlightthickness=0
)
entry_1.place(
x=494.0,
y=95.0,
width=432.0,
height=47.0
)
window.resizable(False, False)
window.mainloop()