gtk clipboard word 2003
- From: ChilliMac <ChilliMac freenet de>
- To: gtk-app-devel-list gnome org
- Subject: gtk clipboard word 2003
- Date: Sun, 28 Dec 2008 22:35:07 +0000
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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]