Skip to content

Commit 2016fff

Browse files
committed
Fix code-block and links
1 parent 4ba1f29 commit 2016fff

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

kivy/graphics/scissor_instructions.pyx

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,17 @@ Scissor Instructions
77
88
Scissor instructions clip your drawing area into a rectangular region.
99
10-
- class:`ScissorPush`: Begins clipping, sets the bounds of the clip space
11-
- class:`ScissorPop`: Ends clipping
10+
- :class:`ScissorPush`: Begins clipping, sets the bounds of the clip space
11+
- :class:`ScissorPop`: Ends clipping
12+
1213
The area provided to clip is in screenspace pixels and must be provided as
1314
integer values not floats.
1415
1516
The following code will draw a circle ontop of our widget while clipping
1617
the circle so it does not expand beyond the widget borders.
18+
1719
.. code-block:: python
20+
1821
with self.canvas.after:
1922
#If our widget is inside another widget that modified the coordinates
2023
#spacing (such as ScrollView) we will want to convert to Window coords

0 commit comments

Comments
 (0)