Custom icon not showing in multiple pages UI in python
Priyanka260895 opened this issue · comments
i am using below code for change icon in title bar.
#set the path to set icon
p1 = PhotoImage(file = r'logo.png')
Setting icon of root window
root.iconphoto(False, p1)
I have a multipage UI python program
I am not destroying the previous page when I navigate to new page
due to this I am getting an error for icon and program stops working
any solution ??
Note: I cannot destroy the pervious pages as they are dependent as holds processing data
Could you share a simplified version of your code that reproduces this issue, please?
Thank you for your reply, but now it is working.
I'm sorry, I really don't understand the issue you're having. Are you trying to use a custom png as the page icon, instead of an emoji? If so, I wouldn't expect that to work, but if you have a way to make it work I would love to see how you are accomplishing that (with enough code to reproduce it).