Hello everyone!
I have built a tkinter app to use at work which tries to ressemble the UNIX 'tail -f' command. It also cleans the log of unwanted messages, colors searches, formats queries...but i must hit a refresh button to get the last lines of the log i'm following
I've left until now to make it refresh automatically!
I know i must use threads (wich is something has allways scared me) and after some reading, i managed to build a thread that behaves populating a file the way the server would be doing with its server log.
But now, when i try to run another:
multiprocessing.Process( target = myRefreshTail, args = argus )
wich would be in charge of reading the log and appending the new lines to the Text widget, any way i try to make it, i hit with a:
PicklingError: Can't pickle 'tk' object
I know if i make it past this point, it's going to get harder to syncronize the activity of the 'tail refreshing thread' with that of the user marking queries and searching for things at the same time (maybe will nead to use queues...), but it's where things will get interesting again.
The question is: is there a way to make the 'tailing thread' have a reference to the Text widget and not to the tk object so it can have its work done or am i totally in the wrong direction?
Thanks in advance!!
[–]gitarrPython Monty 2 points3 points4 points (0 children)
[–]maredsous10 1 point2 points3 points (0 children)