Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #11401

Re: monitor mouse coordinates in real-time

Path csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!news.mixmin.net!news2.arglkargh.de!news.wiretrip.org!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Return-Path <jabba.laci@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.029
X-Spam-Evidence '*H*': 0.94; '*S*': 0.00; 'infinite': 0.07; 'loop.': 0.09; 'to:name:python mailing list': 0.09; 'patch,': 0.16; 'wrote:': 0.16; 'thanks,': 0.18; 'modified': 0.18; 'trying': 0.21; "doesn't": 0.22; 'header:In-Reply-To:1': 0.22; 'variable': 0.24; 'aug': 0.24; "i'm": 0.27; 'code,': 0.28; 'modify': 0.28; 'url:mailman': 0.28; 'message-id:@mail.gmail.com': 0.29; 'subject:time': 0.30; 'parent': 0.30; 'sun,': 0.30; 'there': 0.33; 'to:addr:python-list': 0.33; 'url:listinfo': 0.33; 'however,': 0.34; 'someone': 0.34; 'flag': 0.34; 'url:python': 0.36; 'thread': 0.37; 'put': 0.37; 'something': 0.37; 'could': 0.38; 'think': 0.38; 'received:google.com': 0.38; 'url:org': 0.38; 'received:209.85': 0.38; 'should': 0.38; 'subject:: ': 0.39; 'help': 0.39; 'to:addr:python.org': 0.39; 'might': 0.40; 'periodically': 0.67; 'correctly?': 0.84
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=7j7P8Un+141lIxvEHNi1Xkn/KyWBSVMQUWrzHWWsZQ4=; b=QeL8jZJYCKG96vTMXQZFgCjCFGbd88Q9TfRW7PW1tpS9sEAPkG6RigZLyjRPcd8rD9 xbTxjqsu3Vq33TwqxZzoCuhNzcqFd169kp/+mWYuU5A9pIl1u2l9abb/REr+FBMza7Aj wP7c7V+U0lAihvFFs0ei5JniAFFS0sBDlqrQY=
MIME-Version 1.0
In-Reply-To <j289sm$m7g$1@speranza.aioe.org>
References <mailman.2262.1313311295.1164.python-list@python.org> <j289sm$m7g$1@speranza.aioe.org>
From Jabba Laci <jabba.laci@gmail.com>
Date Sun, 14 Aug 2011 18:39:39 +0200
Subject Re: monitor mouse coordinates in real-time
To Python mailing list <python-list@python.org>
Content-Type text/plain; charset=ISO-8859-1
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.12
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.2279.1313340003.1164.python-list@python.org> (permalink)
Lines 22
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1313340003 news.xs4all.nl 23887 [2001:888:2000:d::a6]:45485
X-Complaints-To abuse@xs4all.nl
Xref x330-a1.tempe.blueboxinc.net comp.lang.python:11401

Show key headers only | View raw


I'm trying something similar. In the thread there is a variable which
is modified by the parent. However, the thread doesn't quit the
infinite loop. If someone could provide a patch, that'd be really
useful.

Thanks,

Laszlo

On Sun, Aug 14, 2011 at 13:00, TheSaint <no@nowhere.net.no> wrote:
> Jabba Laci wrote:
>
>> Could you please help me out how to close the application correctly?
>>
> I think you should put a flag into the code, which the parent might modify
> it, so it will tell the child process to quit.
> Then the flag should need to be read periodically to know whether is time to
> quit.
>
> --
> http://mail.python.org/mailman/listinfo/python-list
>

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

monitor mouse coordinates in real-time Jabba Laci <jabba.laci@gmail.com> - 2011-08-14 10:41 +0200
  Re: monitor mouse coordinates in real-time TheSaint <no@nowhere.net.no> - 2011-08-14 19:00 +0800
    Re: monitor mouse coordinates in real-time Jabba Laci <jabba.laci@gmail.com> - 2011-08-14 18:39 +0200
      Re: monitor mouse coordinates in real-time Jabba Laci <jabba.laci@gmail.com> - 2011-08-17 17:20 +0200

csiph-web