Questions tagged [tkinter-label]
95 questions
3
votes
1 answer
Widgets disappear when moving the window rapidly
I noticed this behavior, where moving the window rapidly made the widgets in it disappear.
import tkinter as…

astqx
- 2,058
- 1
- 10
- 21
2
votes
0 answers
How to insert in a treeview some imgs saved in a list?
I have the next code:
from tkinter import ttk
import tkinter as tk
from PIL import Image, ImageTk
ID = [1,2,3,4,5, 6, 7, 8, 9]
Names = ['Tom', 'Rob', 'Tim', 'Jim', 'Kim', 'Steph', 'Davis', 'Katt']
photo = ['1.jpeg', '2.jpeg', '3.jpeg', '4.jpeg',…

bedipat
- 21
- 3
2
votes
1 answer
Tkinter gif loop infinitely increasing speed
I used Tkinter with python to play animation and it works perfectly fine, on launch it has about 25-30 fps. But once I click on label to changed a gif it starts increasing fps with every click. I can't even determine what exactly is causing this…

Melleo
- 21
- 3
2
votes
1 answer
Is .grid on the same line different as to on a seperate line
I am getting this below error when i try to run my code (at the bottom).
AttributeError: 'NoneType' object has no attribute 'config'
Exception in Tkinter callback
soo is this. this method works with the config and win10toast
L1 = Label(win, text =…

ath0rus
- 83
- 1
- 9
2
votes
1 answer
Binding button to label widget
Trying to call hii function in python tkinter, but nothing happens.
My Code:-
def hii():
print("hii")
m_root = Tk()
m_frame = Frame(m_root)
m_display = Label(m_frame)
label = Label(m_root,text="hii") #set your…

Deoj
- 71
- 1
- 5
2
votes
1 answer
How can I update Tkinter label from a spawned process (multiprocessing.Process)?
Summary: In Python when I update a Tkinter label text from a spawned process, the label on the GUI is not updated, although the spawned process is executed. How can I make it update from the spawned process?
Im am working with Python 2.7.2 in…

user3599802
- 55
- 7
2
votes
1 answer
Updating text on a label
I am working through an Oreilly Tutorial on tkinter, but the code provided in the tutorial doesn't work for me. The "Choose one" message doesn't show, instead it shows: PY_VAR0. When I click the hello button nothing happens. When I click the goodbye…

savvysavage32
- 71
- 6
1
vote
1 answer
Tkinter ttk update label style
I am trying to update the of the background color of a text label. For this I am using the ttk module of tkinter.
For some reason it doesn't want to execute the config.xx(style="xx.TLabel.
from tkinter import *
from tkinter import ttk
win =…

Joost
- 13
- 2
1
vote
1 answer
python + tkinter - is there a way to have a text box with a dynamically updating text variable and a scrollbar?
I am trying to create a GUI with a text box that automatically appends status messages during the execution of a program. I can use a Label widget with a textvariable to update the text, but as far as I can tell, I can't add a scrollbar to a Label.…

Jacob F.
- 45
- 6
1
vote
1 answer
Tkinter Widgets without Parent Master
What are the consequences when omitting the parent master of a widget? Those two programs do not produce a visual difference:
import tkinter as t
import tkinter.ttk as ttk
w = t.Tk()
w.title("Label 1")
label_1 =…

pro-kswe
- 13
- 3
1
vote
0 answers
I've tried to update tkinter label from another function every time I pressed a button but it's not working as I wish it to work! Please Guide me
I'm trying to update my question label,result label everytime I press the submit buttn but it isn't working. It's not showing any error but it's not updating all the time but only a few times it's updating. Please help me.
def submit():#to submit…

Sai Gopal
- 11
- 2
1
vote
1 answer
In tkinter, how can I insert the value of an inherited class variable into a Label widget?
The issue I am having is specifically with the Label widget. In the linked code, the tests for Text widgets and Button widgets both grab the inherited value and display it correctly.
You can find the Label widget in question in class PageTwo
The…

ZG4921
- 45
- 3
- 6
1
vote
3 answers
Tkinter VideoPlayer Library to Play a Video: TypeError: init() got multiple values for argument 'scaled'
I am using it to create a windows app interface. I would like a video to play in the interface and not have another window pop up that plays the video. I have discovered a library called Tkinter VideoPlayer which is specifically used to play a video…
user16826572
1
vote
1 answer
changing label color 2 times within a funtion in tkinter python
I have a funtion, that parses the log. I am updating the label color and text at different lines within the same funtion. I see that only the last changed color and text only reflecting in the UI. i do not see the intermediate color and text…

deepan
- 47
- 4
1
vote
4 answers
How to update tkinter label
So I'm trying to make some sort of basic auto clicker with a rank that updates after a certain amount of clicks, but whenever I update the rank the label that is supposed to display it doesn't change and I don't know how to make the label…

4ntoine12
- 11
- 2