File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -7,14 +7,17 @@ Scissor Instructions
7
7
8
8
Scissor instructions clip your drawing area into a rectangular region.
9
9
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
+
12
13
The area provided to clip is in screenspace pixels and must be provided as
13
14
integer values not floats.
14
15
15
16
The following code will draw a circle ontop of our widget while clipping
16
17
the circle so it does not expand beyond the widget borders.
18
+
17
19
.. code-block:: python
20
+
18
21
with self.canvas.after:
19
22
#If our widget is inside another widget that modified the coordinates
20
23
#spacing (such as ScrollView) we will want to convert to Window coords
You can’t perform that action at this time.
0 commit comments