Talk:Sugar Code Snippets
Jump to navigation
Jump to search
I'm going to add links/snippets here (mostly from the mailing list); the article has been tagged as "maintained by the OLPC team", so I guess I shouldn't be editing it directly. —Leejc 22:43, 28 February 2007 (EST)
target = ctx.get_target() buf = target.create_similar(cairo.CONTENT_COLOR_ALPHA, w, h)
dimensions = handle.get_dimension_data() width = dimensions[0] height = dimensions[1]