1
0
mirror of https://github.com/moparisthebest/Simba synced 2024-11-21 16:55:01 -05:00

Change doc for pymml a bit to work better with RST.

This commit is contained in:
Merlijn Wajer 2010-06-13 02:10:15 +02:00
parent 569596606f
commit 97a94d5679
2 changed files with 14 additions and 0 deletions

View File

@ -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):

View File

@ -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 [].