The launcher panel is a panel you can place left or right or bottom, I think. I set to "autohide", so it pops up when the mouse goes to the left side of the screen. My one contains a launcher for Firefox, Libre Office, other things.
My icons for my personalized launchers show up fine in the launcher panel.
But when I click the icon, the window opens and another icon appears in the launcher. That icon is the grey square with a question mark. It must be some kind of "default icon" for a window which has no icon assigned to it.
I found a solution in tkinter.
My master window is called master. I made a little icon with the text PyWin, it shows up nicely:
Quote:
master.iconphoto(True, tk.PhotoImage(file='/home/pedro/icons/winicon1.png'))
|
"True" passes the icon to other windows which open from the master window when I click a button. The master window already has its own icon.
Quote:
# the main window
master = tk.Tk(className='myTkApp')
master.iconphoto(True, tk.PhotoImage(file='/home/pedro/icons/winicon1.png'))
master.title("Master window to run other windows")
master.config(bg='light green')
master.geometry('1340x740')
master['padx'] = 10
master['pady'] = 10
|