0

I want to display the same image in the child window which was displayed in the parent window. I have added the following code

main_window.withdraw()

        create_account_window = Tb.Window(themename="darkly",title="TeXtCrYpTeR")
        create_account_window.maxsize(width=550,height=335)
        create_account_window.minsize(width=550,height=335)

        # disableing resizble factor
        create_account_window.resizable(False,False)

        # launching the app at the centre  of the screen

        screen_width = create_account_window.winfo_screenwidth()
        screen_height = create_account_window.winfo_screenheight()

        app_width = 550
        app_height = 335

        x = (screen_width/2) - (app_width/2)
        y = (screen_height/2) - (app_height/2)

        create_account_window.geometry(f'{app_width}x{app_height}+{int(x)}+{int(y)}')

        # window icon
        create_account_window.iconbitmap(r'padlock.ico')
        icon = r'padlock.ico'
        create_account_window.iconbitmap(default=icon)

        create_account_window = Toplevel()
            
        img = Image.open("textcrypter.png")
        frame = ImageTk.PhotoImage(img)
        frame_place = tk.Label(create_account_window,image=frame)
        frame_place.place(x=165,y=20)
James Z
  • 12,209
  • 10
  • 24
  • 44

0 Answers0