Questions tagged [tkinter-label]
95 questions
-1
votes
1 answer
Issue with labels
I am writing a program such that a user can enter his details one window and a new window comes showing the output. But, for some reason, the labels in the second window are not being printed.
from tkinter import *
window = Tk() …
-1
votes
1 answer
AttributeError: 'str' object has no attribute 'set' (Tkinter)
I'm doing the calculator by tkinter and having trouble with the button. When I clicked, it show the error like this:
Exception in Tkinter callback
Traceback (most recent call last):
File…

FurryCoder
- 3
- 1
-1
votes
1 answer
How do I move the bottom label to the extreme right in Tkinter?
Here's my code snippet
footer_frame = tk.Frame()
tk.Label(footer_frame, text = 'by .....', font = 'arial 10', padx=5, pady=5).pack(side = tk.RIGHT, anchor='se')
footer_frame.pack(tk.BOTTOM)

Mohit
- 31
- 4
-1
votes
1 answer
How do I clear text displayed using Tkinter label().place() function
How do I clear the code of a = Label() ?
how do I clear the text of this label when using .place() function a = Label() ?
l = IntVar()
t = IntVar()
a = StringVar()
def speed():
global a
length= l.get()
time = t.get()
answer =…
-3
votes
1 answer
Tkinter Not Showing image in Label
This is my code:
import tkinter as tk
win=tk.Tk()
class loadfileclass():
filenamevar=''
data=''
try:
filenamevar=tk.StringVar()
fname=filenamevar.get()
filenamevar.set("")
mainfile=open(str(fname),"rb")
…

Xephonine
- 49
- 7