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:38, 11 July 2012
1 byte added
,
10:38, 11 July 2012
m
→Going from Drawable to Cairo
Line 229:
Line 229:
def do_expose_event(self, event):
def do_expose_event(self, event):
# Create the cairo context
# Create the cairo context
−
cairo_context = self.canvas.get_window().cairo_create(
+
cairo_context = self.canvas.get_window().cairo_create(
)
cairo_context.rectangle(event.area.x, event.area.y,
cairo_context.rectangle(event.area.x, event.area.y,
event.area.width, event.area.height)
event.area.width, event.area.height)
Walter
Bureaucrats
,
Administrators
10,579
edits