Python Forum
[Tkinter] how to update label text from list
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Tkinter] how to update label text from list
#1
Hi

I want to update 5 different label value from list items.

I am following below code.

self.dLabel1.configure(text = f"button clicked times {spData[1:2]}")
my problem is when label update it also add side brackets & single quote

button clicked times ['234']

I want label text as

button clicked times 234

how to solve this issue ?
Reply


Messages In This Thread
how to update label text from list - by Roshan - Apr-22-2020, 07:26 AM
RE: how to update label text from list - by Roshan - Apr-22-2020, 01:30 PM
RE: how to update label text from list - by Roshan - Apr-22-2020, 02:00 PM
RE: how to update label text from list - by Roshan - Apr-22-2020, 03:56 PM
RE: how to update label text from list - by Roshan - Apr-25-2020, 08:04 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  update text variable on label with keypress knoxvilles_joker 5 5,428 May-31-2024, 02:09 PM
Last Post: menator01
  [Tkinter] Update label if there are no records in treeview TomasSanchexx 1 1,061 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,779 Aug-30-2022, 08:44 AM
Last Post: tompranks
  [Tkinter] The Text in the Label widget Tkinter cuts off the Long text in the view malmustafa 4 5,474 Jun-26-2022, 06:26 PM
Last Post: menator01
  How to update the list of a combo box in a QTableView panoss 10 6,514 Feb-05-2022, 03:24 PM
Last Post: panoss
  [Tkinter] Make my button text update? Skata100 1 2,140 Aug-07-2021, 05:37 AM
Last Post: deanhystad
  How to read text in kivy textinput or Label jadel440 1 5,441 Dec-29-2020, 10:47 AM
Last Post: joe_momma
  [Kivy] Kivy text label won't shows up! AVD_01 1 3,039 Jun-21-2020, 04:01 PM
Last Post: AVD_01
  [Tkinter] Python 3 change label text gw1500se 6 4,881 May-08-2020, 05:47 PM
Last Post: deanhystad
  [PyQt] Python PyQt5 - Change label text dynamically based on user Input ppel123 1 13,935 Mar-20-2020, 07:21 AM
Last Post: deanhystad

Forum Jump:

User Panel Messages

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