Python Forum
[Tkinter] Change label for multiple frames
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Tkinter] Change label for multiple frames
#3
TopRight.config['text'] = "Top Right Winch" will not work

Labels can be added to any other suitable widget, which includes frames.
they can be placed on frames, images, canvas and similar 'container type' widgets

Usage:
labelname.config(text = 'My new text')

the label must first exist.

there is also a special widget w = tk.LabelFrame(parent, option, ...)
which will draw a frame around the widgets it contains, with the label embedded in the frame:
   
Reply


Messages In This Thread
Change label for multiple frames - by Dandy_Don - Apr-30-2020, 02:01 AM
RE: Change label for multiple frames - by Larz60+ - Apr-30-2020, 11:03 AM
RE: Change label for multiple frames - by Dandy_Don - Apr-30-2020, 02:22 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  [WxPython] [SOLVED] How to change button label? Winfried 3 3,436 May-31-2022, 06:37 PM
Last Post: Winfried
  [Tkinter] Change Label Every 5 Seconds gw1500se 4 8,909 May-26-2020, 05:32 PM
Last Post: gw1500se
  [Tkinter] Python 3 change label text gw1500se 6 6,491 May-08-2020, 05:47 PM
Last Post: deanhystad
  [Tkinter] How to add multiple frames to main window Dandy_Don 13 12,261 Apr-29-2020, 09:21 PM
Last Post: Dandy_Don
  [PyQt] Python PyQt5 - Change label text dynamically based on user Input ppel123 1 15,942 Mar-20-2020, 07:21 AM
Last Post: deanhystad
  [Tkinter] So what do I need to do change the color this label? jpezz 10 12,284 Apr-03-2019, 09:49 PM
Last Post: jpezz
  [Tkinter] Multiple frames with tkinter - How to make them run on fullscreen mode eabs86 3 19,483 Sep-20-2018, 01:27 AM
Last Post: eabs86

Forum Jump:

User Panel Messages

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