From 97a94d5679026a214130baf974c47f9ebb8b0f36 Mon Sep 17 00:00:00 2001 From: Merlijn Wajer Date: Sun, 13 Jun 2010 02:10:15 +0200 Subject: [PATCH] Change doc for pymml a bit to work better with RST. --- Projects/MMLLib/pymml/mmlcolor.py | 6 ++++++ Projects/MMLLib/pymml/mmlmouse.py | 8 ++++++++ 2 files changed, 14 insertions(+) diff --git a/Projects/MMLLib/pymml/mmlcolor.py b/Projects/MMLLib/pymml/mmlcolor.py index 4cfe85c..c8fab66 100644 --- a/Projects/MMLLib/pymml/mmlcolor.py +++ b/Projects/MMLLib/pymml/mmlcolor.py @@ -4,6 +4,12 @@ from mmltypes import POINT, PPOINT, PINTEGER from mmltypes import PascalArray from mmltypes import RESULT_OK, RESULT_FALSE, RESULT_ERROR +""" +The Color Class +--------------- + +This class does the color finding. +""" class ColorException(Exception): def __init__(self, err): diff --git a/Projects/MMLLib/pymml/mmlmouse.py b/Projects/MMLLib/pymml/mmlmouse.py index 2c5661f..a7a3a30 100644 --- a/Projects/MMLLib/pymml/mmlmouse.py +++ b/Projects/MMLLib/pymml/mmlmouse.py @@ -2,6 +2,13 @@ from ctypes import * from mmltypes import POINT, PPOINT from mmltypes import isiterable +""" +The Mouseclass +--------------- + +The Mouse class controls the mouse movement and key presses. +""" + class MouseException(Exception): def __init__(self, err): Exception.__init__(self, err) @@ -11,6 +18,7 @@ class Mouse(object): """ The MML Mouse object communicates directly with libmml, but wraps it around a nice and easy to use layer. + 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 [].