Doug Quale wrote:
<snip many good comments>
These methods work but use their own definition of "text" based on the target type:
Looking at the gtk+ docs, I thought the canonical way to do this when all you care about is text target types would be
selection.set_text(data)
This would also have the benefit of getting rid of the mysterious
constant 8. (In the version of pygtk currently in Debian unstable
(2.2.0), SelectionData.set_text() requires two arguments, the string
and the length. I see that John fixed this on back on May 13.)
Unfortunately when I try this it doesn't work. The selected data is
always null. Similarly, using SelectionData.get_text() on the
receiving side instead of SelectionData.data always gives me None. Do
these functions work in pygtk or am I doing something wrong?
STRING UTF8_STRING TEXT COMPOUND_TEXT
Acutally get_text() doesn't support TEXT. This is the reason that Thomas was having problems earlier with drag and drop between Firefox and gedit. TextView uses get_text() to retrieve the drag data.
John
_______________________________________________ pygtk mailing list [EMAIL PROTECTED] http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/
