Tom Morton wrote:

>Hi,
>
>Does anyone know how to get drag-n-drop working in pygtk2? I've looked at
>the C docs and the API doesn't appear to have changed much, but
>drag_data_received is never called. The DnD demo in the pygtk2 examples
>seems to be broken in the same way.
>
This is probably related to the following bug:
    http://bugzilla.gnome.org/show_bug.cgi?id=67813

I have to get round to addressing that one ...

>
>Eek.. and something else entirely: I can't figure out how to change the
>text attributes of one row in a GtkTreeView. It is a CellRendererText
>and i'd like some rows to be in bold (it is an emailer. bold marks unread
>messages or whatever)..
>
Simply add an int column to your model that is set to either 
pango.WEIGHT_NORMAL or pango.WEIGHT_BOLD.  Then map the "weight" 
attribute of the text cell renderer to this column, the same way you 
would map the "text" attribute.

James.

-- 
Email: [EMAIL PROTECTED]              | Linux.conf.au 2003 Call for Papers out
WWW:   http://www.daa.com.au/~james/ |   http://conf.linux.org.au/cfp.html




_______________________________________________
pygtk mailing list   [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/

Reply via email to