Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!feeder.news-service.com!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.056 X-Spam-Evidence: '*H*': 0.89; '*S*': 0.00; 'to:name:python mailing list': 0.09; 'url:github': 0.09; 'gui': 0.13; 'coordinates': 0.16; 'real-time.': 0.16; 'thanks,': 0.18; 'wrote': 0.20; 'figure': 0.21; "doesn't": 0.22; 'monitor': 0.28; 'message- id:@mail.gmail.com': 0.29; 'subject:time': 0.30; 'terminate': 0.30; 'hi,': 0.32; 'it.': 0.33; "can't": 0.33; 'to:addr:python- list': 0.33; 'thread': 0.37; 'but': 0.37; 'could': 0.38; 'received:google.com': 0.38; 'received:209.85': 0.38; 'help': 0.39; 'to:addr:python.org': 0.39; 'stop': 0.61; 'here': 0.65; 'mouse': 0.67; 'correctly?': 0.84 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:from:date:message-id:subject:to:content-type; bh=M1xskwkjA5HS2GS6PiO6SazSRFSP/9YDdDtRK+1rIKY=; b=act0b6m8OaORDGHpP7f+tGfTg9SnmVBuVQ9yu86DQ5I4I0laPMN2XAYPP2ocotcYt0 d4dtCc/PNm5Su26nLwdeatKuUS2gTNbjciSD6QvQcTutfVI1hWo33GjmmBk7P0W3pgRC nHGMZ9WV50MCplBIKNYhgQecM0mHsSgU8PC+g= MIME-Version: 1.0 From: Jabba Laci Date: Sun, 14 Aug 2011 10:41:12 +0200 Subject: monitor mouse coordinates in real-time To: Python mailing list 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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 12 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1313311295 news.xs4all.nl 23978 [2001:888:2000:d::a6]:51064 X-Complaints-To: abuse@xs4all.nl Xref: x330-a1.tempe.blueboxinc.net comp.lang.python:11374 Hi, I wrote a simple GUI with pygtk to monitor mouse coordinates in real-time. It works but when I close the application, the thread doesn't stop and I can't figure out how to terminate it. Here is the current source: https://gist.github.com/1144708 (83 lines). Could you please help me out how to close the application correctly? Thanks, Laszlo