Changes

Jump to navigation Jump to search
27 bytes removed ,  13:48, 11 November 2011
Line 176: Line 176:     
<pre>
 
<pre>
# From activity.Activity, you inherit a canvas. Get its window.
+
# From activity.Activity, you inherit a canvas.
win = self.canvas.get_window()
  −
 
   
# Create a Cairo context from the window.
 
# Create a Cairo context from the window.
cairo_context = win.cairo_create()
+
cairo_context = self.canvas.get_window().cairo_create()
    
# Create a Cairo surface from the context
 
# Create a Cairo surface from the context

Navigation menu