Python Forum
[Tkinter] can't update label to include variable
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Tkinter] can't update label to include variable
#3
Those StringVar hp2, sanity2 and hunger2 you updated in the calculate() are local variable of this function, not those defined at line 75~77. Comment out them(line 60~62) and everything will be fine.
Reply


Messages In This Thread
RE: can't update label to include variable - by jfong - Dec-01-2018, 07:16 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  [Tkinter] Update label if there are no records in treeview TomasSanchexx 1 977 Aug-20-2023, 04:45 PM
Last Post: menator01
  [Tkinter] Can't update label in new tk window, object has no attribute tompranks 3 3,613 Aug-30-2022, 08:44 AM
Last Post: tompranks
  [Tkinter] Update variable using tkinter entry methon drSlump 6 5,285 Oct-15-2021, 08:01 AM
Last Post: drSlump
  update text variable on label with keypress knoxvilles_joker 3 4,984 Apr-17-2021, 11:21 PM
Last Post: knoxvilles_joker
  [Tkinter] how to update label text from list Roshan 8 5,517 Apr-25-2020, 08:04 AM
Last Post: Roshan
  Printing Variable into the label ardvci 5 3,145 Mar-19-2020, 09:35 PM
Last Post: joe_momma
  [Tkinter] Update variable between class/frame edwin6938 6 4,620 Nov-22-2019, 08:13 AM
Last Post: edwin6938
  [Tkinter] Trying to display a variable in a label Jordansonatina 2 17,931 Oct-31-2019, 06:28 PM
Last Post: Jordansonatina
  Update a label text from subprocess jim53 3 4,394 Aug-19-2019, 08:21 PM
Last Post: Denni
  Unable to update or refresh label text in tkinter jenkins43 3 6,695 Jul-24-2019, 02:09 PM
Last Post: Friend

Forum Jump:

User Panel Messages

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