Not Responding When Dealing with Large Data

Ian Kelly ian.g.kelly at gmail.com
Wed Jun 18 19:06:26 EDT 2014


On Wed, Jun 18, 2014 at 4:32 PM, cutey Love <cuteywithlove at gmail.com> wrote:
> Hi, thanks for the replies,
>
> I mean windows displays "Not responding close the program now"
>
> How can I do it asynconistrically?
>
> It's simple code just open file, loop through line by line and do some comparons with the string.

If all you want is to prevent Windows from displaying that message
then I believe all you need to do is periodically call
frame.update_idletasks() (or the equivalent if you're using some
framework other than tkinter) so that the basic window events will get
processed.



More information about the Python-list mailing list