Python Forum
Update a label text from subprocess
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Update a label text from subprocess
#3
Thank you for the reply but I not problem to execute esptool with program.
The problem that I have is that the output is redirected to a PIPE but the text of label is only updated when the subprocess.popen is completed. I would like to update the text of the label each time a new character arrived in stdout to have a dynamic update.
I hope you understand my problem. It is "just" a display problem.

I have found a solution.
I have just add
self.update()
after
self.lab.configure(text=self.result)
and now the text of the label is dynamicaly updated.
Reply


Messages In This Thread
Update a label text from subprocess - by jim53 - Aug-18-2019, 08:47 AM
RE: Update a label text from subprocess - by jim53 - Aug-18-2019, 10:14 AM
RE: Update a label text from subprocess - by Denni - Aug-19-2019, 08:21 PM

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,609 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,058 Jun-26-2022, 06:26 PM
Last Post: menator01
  [Tkinter] Make my button text update? Skata100 1 2,067 Aug-07-2021, 05:37 AM
Last Post: deanhystad
  update text variable on label with keypress knoxvilles_joker 3 4,981 Apr-17-2021, 11:21 PM
Last Post: knoxvilles_joker
  How to read text in kivy textinput or Label jadel440 1 5,329 Dec-29-2020, 10:47 AM
Last Post: joe_momma
  [Kivy] Kivy text label won't shows up! AVD_01 1 2,968 Jun-21-2020, 04:01 PM
Last Post: AVD_01
  [Tkinter] Python 3 change label text gw1500se 6 4,766 May-08-2020, 05:47 PM
Last Post: deanhystad
  [Tkinter] how to update label text from list Roshan 8 5,515 Apr-25-2020, 08:04 AM
Last Post: Roshan
  [PyQt] Python PyQt5 - Change label text dynamically based on user Input ppel123 1 13,826 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