Dec-11-2023, 09:25 PM
Hello,
I am trying to create this in Python with TKinter (see screenshot1), but when I try to position the foler_logo.png image, but always appears on top, how to change it according to Screenshot1?
I am trying to create this in Python with TKinter (see screenshot1), but when I try to position the foler_logo.png image, but always appears on top, how to change it according to Screenshot1?
import tkinter as tk from PIL import Image, ImageTk # Set the width and height for the iPhone 14 screen (adjust as needed) iphone_width = 300 iphone_height = 500 # Create the main window window = tk.Tk() window.title("Invoice Processor") # Set the window size window.geometry(f"{iphone_width}x{iphone_height}") window.config(bg='White') image = Image.open("Images/Folder_Logo.png") image = ImageTk.PhotoImage(image) image_label = tk.Label(window, image=image, borderwidth=0) image_label.place(x=150, y=350) image_label.pack() canvas = tk.Canvas(window, width=300, height=70, bg="#0014DC") canvas.pack() rectangle = canvas.create_rectangle(0, 0, 300, 70, fill="#0014DC") # Set the rectangle coordinates and fill color welcome_text = canvas.create_text(75, 50, text="Welcome", fill="white", font=("SLB Sans", 20)) additional_text = tk.Label(window, text="This application will help you\n" "to automatize the file download\n" "process in bulk.", font=("Arial", 11), bg="white") additional_text.place(x=45, y=100) # Run the Tkinter event loop window.mainloop()Thanks in advance for the help.