[pygtk] UI to edit accelerators

2007-08-01 Thread Fredrik Corneliusson
Hi, I would like to add support for customizing the keyboard accelerators for an pygtk application that uses UI manager and ActionGroup. I know about "gtk.accel_map_save" and "gtk.accel_map_load" so I figure I just need to write a nice UI so users can manipulate that file. But it seems to be a pret

Re: [pygtk] Copy a drawable to a cairo surface

2007-08-01 Thread Tobias Ceglarek
Thank you very much for this hint. Meanwhile I have found a trick to solve my problem tolerably with something like: src_context = gtk.gdk.Drawable.cairo_create() src_surface = src_context.get_target() dst_surface = cairo.ImageSurface() dst_context = cairo.Context(dst_surface) dst_context.set_sou