Features/GTK3/Porting: Difference between revisions
| Line 176: | Line 176: | ||
<pre> | <pre> | ||
# From activity.Activity, you inherit a canvas. | # From activity.Activity, you inherit a canvas. | ||
# Create a Cairo context from the window. | # Create a Cairo context from the window. | ||
cairo_context = | cairo_context = self.canvas.get_window().cairo_create() | ||
# Create a Cairo surface from the context | # Create a Cairo surface from the context | ||