[pygtk] Translating tool tip with non ascii characters.

2011-05-01 Thread Gerald Britton
 I have a question:

 Does anyone know if a tooltip string, generated from glade file, is of
 type string or unicode.

 I think that the string must be unicode when calling gettext and the
 string contains non ascii
 characters.

 At least it is so for tooltips generated in python code.


-- 
Gerald Britton
___
pygtk mailing list   pygtk@daa.com.au
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://faq.pygtk.org/


Re: [pygtk] gnome options

2011-05-01 Thread Yann Leboulanger

On 04/22/2011 12:03 AM, Robert Schroll wrote:

On 04/21/2011 04:37 PM, Yann Leboulanger wrote:

But it seems I have to use GOptionContext, but that doesn't seem to
exist in PyGTK.


OptionContext is in gobject, at least for me (2.21.1). Can't help you
with the rest, I'm afraid.


Thanks, I didn't find it because it's not in documentation on pygtk website.

Now it seems that to get the list of options supported by gtk, there is 
a function: gtk_get_option_group () ([1])


but once again I don't find it in python bindings. I looked for 
gtk.get_option_group(), glib.get_option_group(), 
gobject.get_option_group(). is there a reason it's not available? Or am 
I blind?



[1]: 
http://developer.gnome.org/gtk/stable/gtk-General.html#gtk-get-option-group

___
pygtk mailing list   pygtk@daa.com.au
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://faq.pygtk.org/