From fbc03eb7bed46faddbf20449a8d46ac967cf07aa Mon Sep 17 00:00:00 2001 From: Ian Foote Date: Fri, 9 Aug 2013 22:38:18 +0100 Subject: [PATCH] Document CanvasBase and Canvas.clear. --- kivy/graphics/instructions.pyx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/kivy/graphics/instructions.pyx b/kivy/graphics/instructions.pyx index fe463ebd6..6ce86e5bf 100644 --- a/kivy/graphics/instructions.pyx +++ b/kivy/graphics/instructions.pyx @@ -508,6 +508,7 @@ cdef class Callback(Instruction): cdef class CanvasBase(InstructionGroup): + '''CanvasBase provides the context manager methods for :class:`Canvas`.''' def __enter__(self): pushActiveCanvas(self) @@ -558,6 +559,7 @@ cdef class Canvas(CanvasBase): ''' cpdef clear(self): + '''Clears every :class:`Instruction` in the canvas, leaving it clean.''' cdef Instruction c for c in self.children[:]: if c is self._before or c is self._after: