Talk:Sugar Code Snippets: Difference between revisions
Jump to navigation
Jump to search
(Added snippets from mailing list) |
mNo edit summary |
||
Line 1: | Line 1: | ||
I'm going to add links/snippets here (mostly from the mailing list); the article has been tagged as maintained by the |
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. —[[User:Leejc|Leejc]] 22:43, 28 February 2007 (EST) |
||
* [http://mailman.laptop.org/pipermail/sugar/2007-February/001528.html Loading an SVG file onto a surface with a transparent background]: |
* [http://mailman.laptop.org/pipermail/sugar/2007-February/001528.html Loading an SVG file onto a surface with a transparent background]: |
Revision as of 03:44, 1 March 2007
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]