Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed1.news.xs4all.nl!xs4all!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.009 X-Spam-Evidence: '*H*': 0.98; '*S*': 0.00; 'python.': 0.02; 'mouse': 0.07; 'subject:How': 0.09; '8bit%:68': 0.09; 'to:addr:comp.lang.python': 0.09; 'cc:addr:python-list': 0.10; 'advance': 0.10; 'gui': 0.11; 'subject:python': 0.11; 'googled': 0.16; 'merely': 0.16; 'pressed': 0.16; 'wrote:': 0.17; 'examples': 0.18; 'module': 0.19; 'tuples': 0.22; 'cc:2**0': 0.23; 'this:': 0.23; 'cc:no real name:2**0': 0.24; 'cc:addr:python.org': 0.25; '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; 'received:google.com': 0.34; 'thanks': 0.34; 'needed': 0.35; 'pm,': 0.35; 'received:209.85': 0.35; 'really': 0.36; 'received:209': 0.37; 'subject:: ': 0.38; 'some': 0.38; 'received:209.85.214': 0.39; 'google': 0.39; '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; '8bit%:60': 0.84; 'gesture': 0.84; 'recognition': 0.84; 'tie': 0.84 Newsgroups: comp.lang.python Date: Wed, 9 Jan 2013 18:41:37 -0800 (PST) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=182.242.153.249; posting-account=Z1-aQQoAAADvnuKxr9sysEiuPIcBNfjX References: <06fe2548-aa2c-4e66-8a59-474a7a4fc484@googlegroups.com> <4dc2d029-8b1a-494c-8c3e-fccb56ffff42@googlegroups.com> User-Agent: G2/1.0 X-Google-Web-Client: true X-Google-IP: 182.242.153.249 MIME-Version: 1.0 Subject: Re: How to implement mouse gesture by python or pyqt ? From: iMath To: comp.lang.python@googlegroups.com Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Cc: python-list@python.org 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: , Message-ID: Lines: 46 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1357786446 news.xs4all.nl 6882 [2001:888:2000:d::a6]:34850 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:36550 =E5=9C=A8 2013=E5=B9=B41=E6=9C=8810=E6=97=A5=E6=98=9F=E6=9C=9F=E5=9B=9BUTC+= 8=E4=B8=8A=E5=8D=888=E6=97=B606=E5=88=8613=E7=A7=92=EF=BC=8CMichael Torrie= =E5=86=99=E9=81=93=EF=BC=9A > On 01/08/2013 07:57 PM, iMath wrote: >=20 > > =E5=9C=A8 2013=E5=B9=B41=E6=9C=888=E6=97=A5=E6=98=9F=E6=9C=9F=E4=BA=8CU= TC+8=E4=B8=8A=E5=8D=888=E6=97=B644=E5=88=8620=E7=A7=92=EF=BC=8CiMath=E5=86= =99=E9=81=93=EF=BC=9A >=20 > >> It would be better to give me some examples .thanks in advance ! >=20 > >>=20 >=20 > >>=20 >=20 > >>=20 >=20 > >> P.S. which module or lib are needed ? >=20 > >=20 >=20 > > what I wanna perhaps like this: when a right mouse button is pressed >=20 > > and we go down and right with a cursor. As in letter 'L'. Our mouse >=20 > > gesture will close the window. I googled such gesture examples on >=20 > > PyQt4 ,but hard to find one ,so your help will be greatly appreciated >=20 > > ! thanks inadvance ! >=20 >=20 >=20 > My guess is that if you google for it you'll find a gesture recognition >=20 > module for python. moosegesture.py is one such implementation. However >=20 > it is up to you to tie it into your chosen GUI toolkit. It merely >=20 > processes tuples of points in the gesture. Each GUI toolkit has mailing >=20 > lists and forums that would help you know that information, which is not >=20 > really python-specific. oh yes ,I find it moosegesture.py