Last time i tried to make a cool background to my tkinter window via a label with a transparent image:
here is my code:
root = Tk()
screen_x = int(root.winfo_screenwidth())
screen_y = int(root.winfo_screenheight())
window_x = 512
window_y = 620
posX = (screen_x // 2) - (window_x // 2)
posY = (screen_y // 2) - (window_y // 2)
geo = “{}x{}+{}+{}”. format(window_x, window_y, posX, posY)
root.geometry(geo)
root.resizable(0,0)
root.title(“Shadow Kurgansk’s Story”)
image1 = PhotoImage(file=‘blackGlass.png’)
label_for_image= Label(root, image=image1)
label_for_image.pack()
etc…
it didn’t give me the result i expected in anyway, this image will tell you everything:
please support me guys
shadow kurgansk