What's actually useful is to call it before a long import.
-Ken
Type: Posts; User: yemir; Keyword(s):
What's actually useful is to call it before a long import.
-Ken
Your listener class creates a socket in one thread and then tries to receive from it in another. This is not allowed; you can't share file descriptors between threads.
-Ken
One of the virtues of Python for Series 60 is supposed to be that simple scripts are short and relatively free of required boilerplate. However, it has been standard practice from the beginning to...
It was recently pointed out to me that xml.dom.minidom.parse() fails trying to import _weakref even if you have installed HIIT's pyexpat port, weakref.py, and UserDict.py. Although I would highly...
Sure, UI changes will be processed and made visible as long as you are blocked on wait(). The tricky part is making the changes to the UI state, which is only safe to access in the main thread. ...
Having a thread write something to a text file occasionally should not be a problem. The problem may lie elsewhere. Could you please post the code in question? The snippet you included in your...
But sorry, I didn't read your code snippet when I wrote the reply above. The code seems to have a number of problems, and I'm not sure how it relates to your question. You'll need to clarify.
...
Python for Series 60 only allows you to access an open file from the thread in which you opened it. Could you perhaps open the file in the worker thread?
For logging to a file from several...
The lambda closes over the variable i, which is assigned the values 0, 1, 2, 3 and then 4 successively by the for-loop. It turns out that all of your callbacks executed after i already had the value...
There is a function for checking the free disk space buried in the PDIS code. Here's how to use it. -Ken Rimey
# The following requires aosocket-series60_v20.sis from the PDIS
# distribution. ...