Skip to content

Tag: tkinter

Creating a timer with tkinter

I am creating a GUI that needs to have timer starting from 0 and counting up every second until it reaches a limit This is the code I have right now Right now this is increasing the score each second but it does not open the GUI until the score reaches the limit. How can I make it so the

Tkinter window menu root issue

So i’m creating a chat bot inside of a tkinter gui but keep getting an error message when creating the main menu and sub menu. Any help is appreciated. Here’s the code: The error I’m getting is: main_menu=Menu(root) NameError:’Menu’ is not defined Answer Your import is import tki…

Tkinter output to GUI textbox

new to GUI creation with python, I have the following code, how can I make the print command appear on the GUI not the command line? I’m wanting to show the print in the GUI as a text box or some kind of output window so the process can be shown. Answer You can add a label for output underneath

Calling tk.Tk() once but unexpectedly get two windows?

I am using python 3.8.5 and tkinter 8.6. I am learning to use tkinter. I was trying to make a simple form but for some reason I get two windows when I run my code. One of these windows has everything I am expecting with all the details I expect, but then there is a second unexepected uncallwed window with