Python Forum
Active tkinter text output during loop
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Active tkinter text output during loop
#3
Thank you so much!

Something else I was wanting to do is have the current port being the only one that was displayed, instead of adding it at the end of a list of all the previous ports. I modified the for loop from what you suggested to do so:

for p in ports:
    currentport.delete(1.0, END) #this deletes everything in the box before printing out the next one
                                 #there may be a cleaner way to do this, but this works for me
    currentport.insert(END, n)
    window.update_idletasks()
Reply


Messages In This Thread
RE: Active tkinter text output during loop - by dvanommen - Oct-18-2019, 02:23 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  [Tkinter] Help running a loop inside a tkinter frame Konstantin23 3 1,451 Aug-10-2023, 11:41 AM
Last Post: Konstantin23
  [Tkinter] Updating tkinter text BliepMonster 5 5,672 Nov-28-2022, 01:42 AM
Last Post: deanhystad
  [Tkinter] The Text in the Label widget Tkinter cuts off the Long text in the view malmustafa 4 4,672 Jun-26-2022, 06:26 PM
Last Post: menator01
  [Tkinter] Background inactivity timer when tkinter window is not active DBox 4 2,866 Apr-16-2022, 04:04 PM
Last Post: DBox
  Tkinter | entry output. Sap2ch 1 1,951 Sep-25-2021, 12:38 AM
Last Post: Yoriz
  tkinter change the text of the checkbox zazas321 1 3,759 Sep-17-2021, 06:19 AM
Last Post: zazas321
  tkinter text widget word wrap position chrisdb 6 7,462 Mar-18-2021, 03:55 PM
Last Post: chrisdb
  [Tkinter] tkinter.Menu – How to make text-variable? Sir 3 5,546 Mar-10-2021, 04:21 PM
Last Post: Sir
  [Tkinter] acceleration of data output in treeview tkinter Vladimir1984 4 4,100 Nov-21-2020, 03:43 PM
Last Post: Vladimir1984
Photo Tkinter TEXT background image _ShevaKadu 5 7,656 Nov-02-2020, 10:34 AM
Last Post: joe_momma

Forum Jump:

User Panel Messages

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