import tkinter as tk

# Create the main window
root = tk.Tk()
root.title("Ještěd")

# Create a canvas to draw on
canvas = tk.Canvas(root, width=300, height=300, bg="white")
canvas.pack()

# Initial dimensions
width = 210
height = 10
x = 50
y = 290

# Draw the transmitter using rectangles
while width > 0:
    canvas.create_rectangle(x, y, x + width, y - height, fill="grey")
    y -= height
    x += 20
    width -= 40
    height += 10

# Start the Tkinter event loop
root.mainloop()