Skip to content

Commit d645f58

Browse files
authored
Add files via upload
1 parent e9d75a8 commit d645f58

File tree

2 files changed

+75
-0
lines changed

2 files changed

+75
-0
lines changed

Kap7/assets/frame0/entry_1.png

274 Bytes
Loading

Kap7/gui.py

+75
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
2+
# This file was generated by the Tkinter Designer by Parth Jadhav
3+
# https://github.com/ParthJadhav/Tkinter-Designer
4+
5+
6+
from pathlib import Path
7+
8+
# from tkinter import *
9+
# Explicit imports to satisfy Flake8
10+
from tkinter import Tk, Canvas, Entry, Text, Button, PhotoImage
11+
12+
13+
OUTPUT_PATH = Path(__file__).parent
14+
ASSETS_PATH = OUTPUT_PATH / Path(r"/Users/ralph/Downloads/tkdesigner/build/assets/frame0")
15+
16+
17+
def relative_to_assets(path: str) -> Path:
18+
return ASSETS_PATH / Path(path)
19+
20+
21+
window = Tk()
22+
23+
window.geometry("1510x990")
24+
window.configure(bg = "#FFFFFF")
25+
26+
27+
canvas = Canvas(
28+
window,
29+
bg = "#FFFFFF",
30+
height = 990,
31+
width = 1510,
32+
bd = 0,
33+
highlightthickness = 0,
34+
relief = "ridge"
35+
)
36+
37+
canvas.place(x = 0, y = 0)
38+
canvas.create_text(
39+
65.0,
40+
75.0,
41+
anchor="nw",
42+
text="Ein Beispieltext",
43+
fill="#000000",
44+
font=("Inter", 36 * -1)
45+
)
46+
47+
canvas.create_rectangle(
48+
446.0,
49+
329.0,
50+
846.0,
51+
432.0,
52+
fill="#000000",
53+
outline="")
54+
55+
entry_image_1 = PhotoImage(
56+
file=relative_to_assets("entry_1.png"))
57+
entry_bg_1 = canvas.create_image(
58+
710.0,
59+
119.5,
60+
image=entry_image_1
61+
)
62+
entry_1 = Entry(
63+
bd=0,
64+
bg="#D9D9D9",
65+
fg="#000716",
66+
highlightthickness=0
67+
)
68+
entry_1.place(
69+
x=494.0,
70+
y=95.0,
71+
width=432.0,
72+
height=47.0
73+
)
74+
window.resizable(False, False)
75+
window.mainloop()

0 commit comments

Comments
 (0)