Python Forum
tkinter label error
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
tkinter label error
#2
You have many things wrong.
  • Change all single letter variables to meaningful names. Though not strictly required,
    it's better code, and will make debugging much easier as the program grows. (r and f)
  • line 6 - you have already instantiated Tk, only one allowed per tkinter script remove this one
  • line 7 - frame is never used
  • line 12 - function never used, and wouldn't work at any rate
  • line 13 - what is pack_forget??
  • line 21 - what is compound? there is no such attribute for Button widget
  • line 22 - cannot use grid, place and pack in same widget choose one and use throughout
  • line 23 - same as 22
  • ... more apply fixes above to rest of code.

Reply


Messages In This Thread
tkinter label error - by nonzzo - Mar-31-2019, 12:33 PM
RE: tkinter label error - by Larz60+ - Mar-31-2019, 01:29 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Tkinter: An image and label are not appearing. emont 7 599 Mar-21-2024, 03:00 PM
Last Post: deanhystad
  tkinter destroy label inside labelFrame Nick_tkinter 3 4,549 Sep-17-2023, 03:38 PM
Last Post: munirashraf9821
  [Tkinter] Updating Tkinter label using multiprocessing Agusms 6 3,138 Aug-15-2022, 07:10 PM
Last Post: menator01
  [Tkinter] The Text in the Label widget Tkinter cuts off the Long text in the view malmustafa 4 4,865 Jun-26-2022, 06:26 PM
Last Post: menator01
  tkinter: Image to Label Maryan 10 5,255 Oct-29-2020, 01:48 PM
Last Post: joe_momma
  Tkinter - How can I extend a label widget? TurboC 2 2,785 Oct-13-2020, 12:15 PM
Last Post: zazas321
  Tkinter: How to assign calculated value to a Label LoneStar 7 3,851 Sep-03-2020, 08:19 PM
Last Post: LoneStar
  changing tkinter label from thread nanok66 3 7,342 Jun-07-2020, 01:37 AM
Last Post: nanok66
  [Tkinter] tkinter How to pass label fiilename to another module? johnjh 0 2,004 Apr-17-2020, 11:34 PM
Last Post: johnjh
  Make Label Text background (default color) transparent using tkinter in python barry76 1 23,764 Nov-28-2019, 10:19 AM
Last Post: Larz60+

Forum Jump:

User Panel Messages

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