Open main menu
Home
Random
Log in
Settings
About Sugar Labs
Disclaimers
Sugar Labs
Search
Changes
← Older edit
Newer edit →
Features/GTK3/Porting/Typing Turtle
(view source)
Revision as of 06:35, 27 July 2012
338 bytes added
,
06:35, 27 July 2012
no edit summary
Line 188:
Line 188:
# Hack to get the current modifier state - which will not be represented by the event.
# Hack to get the current modifier state - which will not be represented by the event.
state = gtk.gdk.device_get_core_pointer().get_state(self.window)[1]
state = gtk.gdk.device_get_core_pointer().get_state(self.window)[1]
+
+
= Missing / problematic things =
+
+
* This method, ''set_source_pixbuf'', is not available.
+
+
cr = self.get_window().cairo_create()
+
# README: http://developer.gnome.org/gdk/stable/gdk-Cairo-Interaction.html#gdk-cairo-set-source-pixbuf
+
# Although this methos is not available in Python
+
cr.set_source_pixbuf(self.backgroundpixbuf, 0, 0)
+
Humitos
266
edits