Python Forum
Can tkinter monitor dictionary
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Can tkinter monitor dictionary
#7
If you just want to monitor the contents of a dictionary in a program and you don't want to make many changes to the program and this is maybe only for debugging or something, I would write the dictionary to a json file. You could make a special dictionary that logs changes, or you could set up a timer to periodically write the dictionary. Provide a way in your program tor turn the logging on and off.

Write a separate program to display the contents of the json file.. This way you don't have to tack on tkinter just to do something you aren't even interested in doing.
Reply


Messages In This Thread
Can tkinter monitor dictionary - by personalt - Jun-20-2020, 12:09 PM
RE: Can tkinter monitor dictionary - by menator01 - Jun-20-2020, 02:06 PM
RE: Can tkinter monitor dictionary - by Gribouillis - Jun-20-2020, 02:41 PM
RE: Can tkinter monitor dictionary - by personalt - Jun-21-2020, 04:35 PM
RE: Can tkinter monitor dictionary - by Gribouillis - Jun-21-2020, 05:07 PM
RE: Can tkinter monitor dictionary - by personalt - Jul-07-2020, 12:41 AM
RE: Can tkinter monitor dictionary - by deanhystad - Jul-07-2020, 03:51 PM

Forum Jump:

User Panel Messages

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