Skip to content

Tag: tkinter

How to change color of matplotlib toolbar in tkinter?

I would like to change the color of the toolbar when making a matplotlib figure in tkinter. I have managed to find and change the color of two parts. There is one remaining. My code comes directly from https://matplotlib.org/stable/gallery/user_interfaces/embedding_in_tk_sgskip.html?highlight=embedding%20tk w…

Tkinter: How to swich label text using buttons

I want to change the label text to the button´s name when I press it. there are undefined buttons so I can’t save each one to a variable. Answer You have many errors. Here is a version of your code, for Python 3, not Python 2, that at least runs. It may not do exactly what you want it to

Trying to resize image on 2nd window of Tkinter GUI

This code will open a main window with an image, then another window with the same image. Is there any way to resize the image to be smaller? (go to # !>>> IMAGE 2 (2nd window)) Here is the code: Answer I see Bryan Oakley has already posted an answer your question, but I’ll supplement it with m…