Category "tkinter"

tkinter creating buttons in for loop passing command arguments

I am trying to create buttons in tkinter within a for loop. And with each loop pass the i count value out as an argument in the command value. So when the funct

tkinter tab width incorrect

When creating text on a canvas using the create_text method the width of a tab is not what it should be, as indicated by font.measure. import tkinter as tk from

How to create a new window like a message box?

Hi guys hope you are doing well, i can't understand how to create in Tkinter a new window for example when i press a button that is like a message box, i mean c

How can I get my loading circle GIF frames to display on a Tkinter Canvas?

I am having trouble getting a loading circle GIF to display on a Tkinter Canvas in my game's support window. My game is called Space Invaders Supreme, and it is

Threading and Tkinter - How to use the threading module with my simple example?

I don't understand how to use the threading module properly. In this example I have two tkinter widgets, a button and a progress bar. The progress bar (configur

Stop a function after a thread process is done runnig

i made a little GUI to take input from the user one of the main process is withing a thread and since that command starts there's an event that triggers an endl

How to fix exception in Tkinter callback error?

The main part of this assignment was to create a calculator but every time I push a button it pops up an error message at the top saying Exception in Tkinter ca

My python tkinter buttons are updating too quickly after the wrong comparison is made

I'm trying to make a memory game for fun and as a learning experience, and I've run into the issue where even with something like time.sleep(.5) I still can't g

Tkinter- unable to bind image with an event [duplicate]

I have created a chat app where i want to share images and pictures as well and i am displaying picture on the chat box every thing is going r

Display a graph generated by Graphviz in tkinter python

I wonder if there is a package or example that display graphs that are created by Graphviz using PyGraphviz, in tkinter My investigation: My graphs can be rend

Tkinter object-oriented file dialog?

The following code displays a file dialog, returning a file_path string that I may then use to, for example, import a csv directly into a pandas dataframe. util

Python with matplotlib and tkinter is working but I don’t understand how

I’m writing a program to help me solve small puzzles, like Sudoku. I’m a newbie at Python and am just starting to use matplotlib and tkinter. I&rsqu

Tkinter window resize to fit content without touching

I have created an application that required to use the place() manager. I tried using pack() and grid() but after many tries and lots of effort it did not work

How to use variable declared inside function outside of it?

How do I use a variable that I declared inside a function outside one. Do I have to declare a function first and then use it? Using global doesn't work, so what

Tkinter: move scrollbar automatically to the founded item when searching

This is a little replica of my app where I've numerous text widget create with a for loop; I've also create a search entry and option to highlight the context i

can't figure out why my entry() widget is returning null

I've been trying to pass data from an entry box inside a function to another function but the entry.get() function seems to be returning nothing. here is a part

Python 3.10.2 anti-aliased fonts not smoothing in Tkinter under SUSI Linux

I have a problem with font smoothing AKA anti-aliasing not working. I have provided a small Tkinter test code snippet that shows a grid of Tkinter labels that s

How can I convert a return statement into a printable statement? [closed]

I am making a GFC (Greatest Common Factor) calculator with GUI, but my current code only works with a return statement, and tkinter doesn't ac

<B1-Motion> binding is unresponsive in Tkinter

I've been working on learning more about the Canvas() widget in tkinter, so I decided to build a simple paint app just for practice. To achieve this, I created

tkinter, or function to pass filename into variable for use in other function

My code below is to be used in a GUI that has two buttons. One to ask the user to locate a txt file, the other to run a function using that file to clean the da