[pygtk] Problems with '&' in treeview

Volker Helm helm.volker at gmx.de
Fri Apr 27 14:19:42 WST 2007


Hi Felix,

>> So, with every '&' the System went wrong. Is there an easy way to 
>> mask '&' instead of replacing it with '&'?
>
> Use gobject.markup_escape_text:
>
>   gobject.markup_escape_text("This & <That>")
>   # -->  'This &amp; &lt;That&gt;'
That's the thing I was looking for.

Thanks,

Volker



More information about the pygtk mailing list