Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!us.feeder.erje.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.freenet.ag!news2.euro.net!newsgate.cistron.nl!newsgate.news.xs4all.nl!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.013 X-Spam-Evidence: '*H*': 0.97; '*S*': 0.00; 'python.': 0.02; 'mouse': 0.07; 'subject:How': 0.09; '8bit%:68': 0.09; 'advance': 0.10; 'gui': 0.11; 'subject:python': 0.11; 'from:addr:torriem': 0.16; 'from:name:michael torrie': 0.16; 'googled': 0.16; 'merely': 0.16; 'pressed': 0.16; 'wrote:': 0.17; 'examples': 0.18; 'module': 0.19; 'tuples': 0.22; 'this:': 0.23; 'header:In-Reply-To:1': 0.25; 'header:User-Agent:1': 0.26; 'guess': 0.27; 'appreciated': 0.27; 'toolkit': 0.29; 'points': 0.29; 'subject: ?': 0.30; 'button': 0.30; 'lists': 0.31; 'to:addr:python-list': 0.33; 'thanks': 0.34; 'needed': 0.35; 'pm,': 0.35; 'received:org': 0.36; 'really': 0.36; 'message-id:@gmail.com': 0.36; 'subject:: ': 0.38; 'some': 0.38; 'to:addr:python.org': 0.39; 'received:192': 0.39; 'google': 0.39; 'received:192.168': 0.40; 'header:Received:5': 0.40; 'help': 0.40; 'your': 0.60; "you'll": 0.62; 'close': 0.63; 'p.s.': 0.63; 'information,': 0.63; 'our': 0.65; 'forums': 0.71; 'gesture': 0.84; 'recognition': 0.84; 'tie': 0.84 X-Virus-Scanned: amavisd-new at torriefamily.org Date: Wed, 09 Jan 2013 17:06:13 -0700 From: Michael Torrie User-Agent: Mozilla/5.0 (X11; Linux i686; rv:10.0.11) Gecko/20121115 Thunderbird/10.0.11 MIME-Version: 1.0 To: python-list@python.org Subject: Re: How to implement mouse gesture by python or pyqt ? References: <06fe2548-aa2c-4e66-8a59-474a7a4fc484@googlegroups.com> <4dc2d029-8b1a-494c-8c3e-fccb56ffff42@googlegroups.com> In-Reply-To: <4dc2d029-8b1a-494c-8c3e-fccb56ffff42@googlegroups.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 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: 20 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1357776388 news.xs4all.nl 6890 [2001:888:2000:d::a6]:59157 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:36533 On 01/08/2013 07:57 PM, iMath wrote: > 在 2013年1月8日星期二UTC+8上午8时44分20秒,iMath写道: >> It would be better to give me some examples .thanks in advance ! >> >> >> >> P.S. which module or lib are needed ? > > what I wanna perhaps like this: when a right mouse button is pressed > and we go down and right with a cursor. As in letter 'L'. Our mouse > gesture will close the window. I googled such gesture examples on > PyQt4 ,but hard to find one ,so your help will be greatly appreciated > ! thanks inadvance ! My guess is that if you google for it you'll find a gesture recognition module for python. moosegesture.py is one such implementation. However it is up to you to tie it into your chosen GUI toolkit. It merely processes tuples of points in the gesture. Each GUI toolkit has mailing lists and forums that would help you know that information, which is not really python-specific.