Python Forum
[Tkinter] Returning Entry as a Label
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Tkinter] Returning Entry as a Label
#2
You have to use a textvariable instead of text for the label
http://effbot.org/tkinterbook/label.htm

v = tkinter.StringVar()
tkinter.Label(master, textvariable=v).pack()

v.set("New Text!")
Recommended Tutorials:
Reply


Messages In This Thread
Returning Entry as a Label - by ashleyrfm94 - Jul-22-2019, 12:28 PM
RE: Returning Entry as a Label - by metulburr - Jul-22-2019, 01:19 PM
RE: Returning Entry as a Label - by Yoriz - Jul-22-2019, 04:47 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  [Tkinter] Returning always the last image into Label Lucas_Ribeiro 1 2,159 May-08-2020, 05:56 PM
Last Post: deanhystad
  [Tkinter] Connect Toplevel Radiobuttons to root Label/Entry widgets iconit 2 2,503 Apr-28-2020, 06:50 AM
Last Post: iconit
  Transfer Toplevel window entry to root window entry with TKinter HBH 0 4,505 Jan-23-2020, 09:00 PM
Last Post: HBH
  [Tkinter] how to get the entry information using Entry.get() ? SamyPyth 2 3,535 Mar-18-2019, 05:36 PM
Last Post: woooee
  [WxPython] bind label and entry text with return key metulburr 1 3,310 Aug-14-2018, 10:02 PM
Last Post: metulburr

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020