Hello,I'm developing a python application written in python and using gtk. I need to copy a gtk image and paste it into Microsoft Word 2003. Pasting to Excel 2003, WordPad, Paint and so on, works perfect, but not to Word 2003. When i try to paste the image there, just nothing happens.
This is the piece of code, that should do the job:
pm = gtk.gdk.Pixmap(None, swidth, sheight, 24) cc = pm.cairo_create() _draw_barcode(cc, barcode, text) pb = gtk.gdk.Pixbuf(gtk.gdk.COLORSPACE_RGB, False, 8, swidth, sheight) pb = pb.get_from_drawable(pm, pm.get_colormap(), 0, 0, 0, 0, swidth,
sheight)
clipboard = gtk.clipboard_get(gtk.gdk.SELECTION_CLIPBOARD) clipboard.set_image(pb)
Does anyone know, how pasting pixbufs to Word 2003 works? Greetings, ChilliMac