Questions tagged [tkinter-label]

95 questions
0
votes
1 answer

Cannot get StringVar to update Label

I'm going nuts trying to get this label updated via StringVar. I've read over millions of answers online, watched multiple tutorials and still can't get it to update the label when I run the program. What am I missing? from os import name import…
Alditrus
  • 87
  • 1
  • 5
0
votes
1 answer

Label's size changing after inserting an image

I am trying to reconstruct a picture that is divided into 6 parts, by adding the parts neatly to the 6 labels ordered vertically. The pictures have the exact size with labels but still after adding them either labels are getting smaller or either…
user13112566
0
votes
1 answer

Some very weird problem about widget dimensions in tkinter

I'm trying to get the heights of some labels sorted vertically which are meant to be 690 in sum in order to see that all are equal. Well, weirdly, the numbers are incorrect while I'm using the correct codes to get and calculate them, I really don't…
user13112566
0
votes
0 answers

Tkinter change label color from a parent class dynamically

I am trying to change color of label on a button click. But the label attribute is None. The class below contains the label I am trying to change color. class InfoGeneralFrame(Frame): COL_GREEN = "#179900" COL_RED = "#f70f02" COL_NETM =…
0
votes
1 answer

Machine vision camera image not let me use to Tkinter Lable

here i am using baumer machine vision camera and tkinter framework for making gui application. i captured image from camera and convert using PIL Library but lable throws error for numpy array. this application work for webcam so i cant understand…
0
votes
0 answers

How to reset labels in tkinter that are referenced before assignment in enclosing scope

I would like to have my pipeline (carbon and clear) running unless "Quit" is clicked. for every entry, carbon is run and the labels are printed to the screen every time button2 is clicked, I would like the entry box to clear and all the 4 labels…
0
votes
3 answers

change label image everytime when i click a button in tkinter

Hello, please i'm making a tkinter window with an image and two buttons, and using those buttons previous and next to switch between images whenever i click the buttons the problem is that i dont know how to change the image everytime i click one…
0
votes
0 answers

Label flickers when moved in Tkinter

I'm trying to make a windows simulator with windows and menus (or so I think I did), lately I use a drag and drop system to move labels (most of my widgets are, I avoid using canvases because they are somewhat difficult :| ), so I pretend that I…
TheBigEye
  • 3
  • 1
0
votes
1 answer

How to display images from a directory as labels in Tkinter?

I'm new to Python GUI using Tkinter, and I'm stuck with the following: I'm trying to read some image files in a particular directory using Python's os module, and show them as labels of Tkinter in a single window. The images have an average size of…
0
votes
0 answers

Labels containing images won't fully display when I change the label's attribute?

I started coding a little ago and already there is a bug I can't figure out. I'm trying to make a Minesweeper-like program. My issue is that when I try to get a cell to display the picture of a flag, a mine or any other image (not number or letters,…
0
votes
1 answer

How should be deleted widgets that were create by a loop, in python tkinter?

I created entries and labels by loops. If user click the button there will be new entries and lables in two-two seperated row. Now I want to delete them by other button clicking, but labels are not deletable -only entries are. My other problem is I…
Nirevezs
  • 71
  • 8
0
votes
1 answer

Is possible use 2 diferent fonts in one Label of Tkinter?

How to use 2 different fonts in the same Label? For txt1 one font and txt2 another different font IE: Label(container_frame3, text=txt1+txt2,width=14)
0
votes
2 answers

How to make a Label in Tkinter get only empty space and not the whole window

I have a Tkinter application, and I want the Label to completely take up the empty space (because I have set the Label as a background picture for my App). But when I don't specify the height and the width of the Label, it also eats up the Frame as…
Hunter
  • 188
  • 2
  • 11
0
votes
1 answer

Label not showing a Picture as a background in Tkinter

#importing everything from tkinter import * from PIL import Image #making the root window root = Tk() dimension = '800x500' #setting the window im = Image.open(r'C:\Users\Hunter\Desktop\school 1\module\pbm\bg.png') bg = PhotoImage(im) window =…
Hunter
  • 188
  • 2
  • 11
0
votes
2 answers

How to highlight two different labels when hovered on any one of them in tkinter?

I am building a small application using tkinter where it shows you the list of work done in the particular given interval ,the format is as below co11 col2 Time done Activity name Below is the code.since the two…
Niresh
  • 67
  • 7