Skip to content

Tag: tkinter

When enabling a button, disabling the other

Code: Output: When I click any other button, I get: All buttons get enabled. Question: After I’ve clicked one of the buttons which aren’t disabled, I want this one to get disabled. Let’s say I clicked button button2. Thus, button2 will get disabled as shown: The reason why I haven’t fo…

Accessing variables from other tab in notebook

Hi all, I was unsuccessful with my last question in this group because my code was too long. I have now brought my code to a minimum and added a screenshot. I hope this time everything is clear and not confusing. My question is: how can I check the variable “val” in Tab1 whether it is smaller than…

Slide show program, event processing

I need the images to change if the cursor is inside the window without moving, but I managed to make the image changes only if the cursor is moving inside the window, how can I change the code? Answer You can calculate cursor position in loop and show image if it’s located within tkinter window: