From e57b3e7213326d0f2aa53ebd3ee03bcff288586a Mon Sep 17 00:00:00 2001 From: Merlijn Wajer Date: Wed, 19 May 2010 17:23:32 +0200 Subject: [PATCH] PyMML indentation fix + cleanup. --- Projects/MMLLib/pymml/mmlmouse.py | 7 +------ Projects/MMLLib/pymml/mmltypes.py | 4 ++-- 2 files changed, 3 insertions(+), 8 deletions(-) diff --git a/Projects/MMLLib/pymml/mmlmouse.py b/Projects/MMLLib/pymml/mmlmouse.py index 2a75522..456c04c 100644 --- a/Projects/MMLLib/pymml/mmlmouse.py +++ b/Projects/MMLLib/pymml/mmlmouse.py @@ -14,15 +14,10 @@ class Mouse(object): It will allow several ways to set mouse positions and buttons. __getitem__ and __setitem__ are also implemented, so one can access mouse buttons states and positions with []. - - ''' # _mc = MMLCore reference. _mc = None - Left ='Left' - Right = 'Right' - Middle = 'Middle' - Pos = 'Pos' + Left, Right, Middle, Pos = 'Left', 'Right', 'Middle', 'Pos' # last pointer position _lpp = (0, 0) diff --git a/Projects/MMLLib/pymml/mmltypes.py b/Projects/MMLLib/pymml/mmltypes.py index 7b1d649..7dd2690 100644 --- a/Projects/MMLLib/pymml/mmltypes.py +++ b/Projects/MMLLib/pymml/mmltypes.py @@ -5,8 +5,8 @@ class POINT(Structure): POINT represents a point with two variables, x and y. POINT is mainly used for Python <-> MML communication. ''' - _fields_ = [('x', c_int), - ('y', c_int)] + _fields_ = [('x', c_int), + ('y', c_int)] PPOINT = POINTER(POINT)