Open main menu
Home
Random
Log in
Settings
About Sugar Labs
Disclaimers
Sugar Labs
Search
Changes
← Older edit
Newer edit →
Features/GTK3/Porting
(view source)
Revision as of 10:18, 14 November 2011
80 bytes removed
,
10:18, 14 November 2011
→Going from Drawable to Cairo
Line 181:
Line 181:
# Create a Cairo context from the window.
# Create a Cairo context from the window.
cairo_context = self.canvas.get_window().cairo_create()
cairo_context = self.canvas.get_window().cairo_create()
−
−
# Create a Cairo surface from the context
−
surface = cairo_context.get_target()
# Create an XLib surface to be used for drawing
# Create an XLib surface to be used for drawing
Walter
Bureaucrats
,
Administrators
10,533
edits