change gtk STOCK_SAVE label text on the fly

Thomas Jollans t at jollybox.de
Sat Jul 30 00:37:51 CEST 2011


On 30/07/11 00:29, Peter Irbizon wrote:
>> (Don't feel you need to answer this: Do you really think you need
> on-the-fly language switching? It's "cool", but how many users are going
> to want to use that?)
> yes, you're right. anyway it's cool feature and I hoped it's easy to do
> it in python / but it isn't... 
>  
>> Why do you want to change it? I assume it's being used in some dialog
>> class you're using; which one? Does it not allow you to set the button
>> text when you create it?
> I tried to do that in pygtk but no success. I thought this will be quick
> fix because my newbie knowledge does not allow me to set/change locale
> when app starts. Of course I would prefer another way of doing this but
> how can I tell to gtk which language use ?
> 
> 

http://docs.python.org/py3k/library/locale.html

I assume that whatever component uses STOCK_SAVE can be told to use
something else.



More information about the Python-list mailing list