gzz-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Gzz-commits] libvob/vob/demo/mouse drags.py


From: Tuomas Lukka
Subject: Re: [Gzz-commits] libvob/vob/demo/mouse drags.py
Date: Wed, 6 Aug 2003 17:59:05 +0300
User-agent: Mutt/1.5.4i

On Wed, Aug 06, 2003 at 05:53:10AM -0400, Matti Katila wrote:
> CVSROOT:      /cvsroot/libvob
> Module name:  libvob
> Branch:       
> Changes by:   Matti Katila <address@hidden>   03/08/06 05:53:10
> 
> Modified files:
>       vob/demo/mouse : drags.py 
> 
> Log message:
>       run fix
> 
> CVSWeb URLs:
> http://savannah.gnu.org/cgi-bin/viewcvs/libvob/libvob/vob/demo/mouse/drags.py.diff?tr1=1.2&tr2=1.3&r1=text&r2=text
> 
> Patches:
> Index: libvob/vob/demo/mouse/drags.py
> diff -u libvob/vob/demo/mouse/drags.py:1.2 libvob/vob/demo/mouse/drags.py:1.3
> --- libvob/vob/demo/mouse/drags.py:1.2        Wed Aug  6 04:41:55 2003
> +++ libvob/vob/demo/mouse/drags.py    Wed Aug  6 05:53:10 2003
> @@ -3,7 +3,7 @@
>  from __future__ import nested_scopes
>  import vob
>  from org.nongnu.libvob.gl import GL, GLRen
> -
> +from org.nongnu.libvob import VobMouseEvent as e
>  from vob.putil.misc import *
>  
>  class MoveDrag(vob.mouse.MouseDragListener):
> @@ -72,7 +72,7 @@
>            }))
>  
>       self.multiplexer.setListener(
> -         1, self.multiplexer.SHIFT_MASK, "Resize things", QuadSelect(self, 
> +         1, e.SHIFT_MASK, "Resize things", QuadSelect(self, 
>           {
>            "0": MoveSize(self, self.places, 0),
>            "1": MoveSize(self, self.places, 1),

Umm, please try to avoid single-letter names. 

Python already uses so much less code that saying VobMouseEvent won't
make it too much harder to type but MUCH easier to read.

        Tuomas




reply via email to

[Prev in Thread] Current Thread [Next in Thread]