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 09:18, 14 November 2011
80 bytes removed
,
09: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,579
edits