Category "tkinter"

How do I align the radiobuttons to left in tkinter?

enter image description here My code shows the radiobuttons unaligned , tap picture to see, and I want to define var(1,2,3,4,5) in some better way. I am very

Unable to exit tkinter app when using "wait_variable()"

I have a python code that includes tkinter window and other running tasks. I've been trying to bind "WM_DELETE_WINDOW" event to a function that exits my python

How To Put Widgets In A New Tkinter Window?

I wanted to add widgets to a new tkinter window, so I tried this: old_window = Tk() new_window = Tk() old_window.destroy() new_window.geometry("750x550"

How do I start a timer when I click on an entry widget

I'm trying to start a timer when I click on an entry widget, but I have no clue how to do it. I've got a program that loads up a tk window, and a timer starts

Tkinter fonts are blury and pixelated

I am trying to make a GUI in Ubuntu 16.04, python 3.6 running the code using virtual environment. I have many default fonts installed on my system. No matter w

tkinter: How to avoid this ValueError: could not convert string to float: ''?

from tkinter import * root = Tk() entry = Entry(root, width=50) entry.grid() entry.grid(row=1,column=0) def ButtonClick(): userInput = entry.get() e

import _tkinter # If this fails your Python may not be configured for Tk error in python 3.8

Currently using Ubuntu 20.04 LTS with python3.8.5. Its my first time using ubuntu with absolutely no previous knowledge of terminal.SO,would love to have a deta

Tkinter treeview wrap text only working in first row

I have referred the answer from this link Wrap text inside row in tkinter treeview But it seems it is working only first row of records. When second row get add

clicker game images not updating

It seems that everything is working and even the images are working but instead of disappearing after the (price) or (popularity) gets too high for the image, t

How to add multiple Notebook tabs (tkinter) without crossing main window border?

Got non-resizable window, Notebook object and 3 tabs. Notebook object go out of window frame with third tab title (I don't want that). Tab titles should become

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

Bind function to multiple labels named equally - tkinter

I want to allow the user to create as many labels as they want using the following code: def new_line(event): global Row_n Row_n = Row_n + 1 Choose=

How to create my own Python package and save it on my computer

I created a package. It's a function I need to use in almost every Tkinter project of mine. It centers my Tkinter window on the screen of the user. How do I mak

How to position several widgets side by side, on one line, with tkinter?

By default, after making a tkinter button, it automatically puts the next one on the other line. How do I stop this from happening? I want to do something like

Problem starting tkinter files using import

I'm trying to make my code smaller by using import instead of os.startfile() to open my other .pyw code. I'm having some problems with starting one of the files

Keep TopLevel window in front of main window

I created a TopLevel window that appears in front of my main window when it pops up. It works as intended when I run the program from the command line. The prob

Is there an onload event for Python's tkinter Window?

Currently learning the tkinter module for Python 3.7 Is there an Onload() event (kind of like the c#'s WPF onload event)? The background, I am trying to load

Using returned variable from 1 function in another

I have spent many hours all over the internet and this site trying to determine what is going on. All I'm trying to do is, using tkinter, have 1 button (Browse

NameError: name 'player' is not defined - but it was defined, just in another function

The below code gives an error, "NameError: name 'player' is not defined". I dont understand why. When I have the music just playing, without needing to be trigg

Tkinter in python - not found

I wanted to use tkinter in python 2.7, but it says, it is not found. Neither I can install it using pip install. How to install it ? Python 2.7.5 (default, Nov