Skip to content

Commit e8fc66c

Browse files
committed
Docs: Add missing 'import sys' to Canvas Creation tutorial
The example code in the Canvas Creation section of the tutorial requires the `sys` module to run correctly, but the `import sys` statement was missing. This change adds the import sys to resolve the error.
1 parent 9ffb045 commit e8fc66c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

docs/tutorial/canvas.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ The following example uses glfw package to create an OpenGL context. Install
7979
8080
.. code-block:: python
8181
82+
import sys
8283
import skia
8384
import glfw
8485
import contextlib
@@ -134,7 +135,7 @@ Here's a complete example:
134135

135136
.. code-block:: python
136137
137-
import contextlib, glfw, skia
138+
import sys, contextlib, glfw, skia
138139
from OpenGL import GL
139140
140141
WIDTH, HEIGHT = 640, 480

0 commit comments

Comments
 (0)