Features/GTK3/Porting/Typing Turtle: Difference between revisions
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) | |||