[wxpython-users] Re: Stock Buttons and Windows XP/Vista

Sebastian Żurek sebzur at gmail.com
Wed Apr 23 15:24:46 PDT 2008


Robin Dunn pisze:
> Sebastian Żurek wrote:
>> -----BEGIN PGP SIGNED MESSAGE-----
>> Hash: SHA1
>>
>> Hi All,
>>
>>     I'm using some stock buttons, that work excellent under Linux.
>> Unfortunately - under Windows (XP and Vista) I have some problems: I
>> have no icons attached and the button label is not translated /I'm using
>> polish language and everything works great with GTK, but under Win.
>> there's only english label without icon/.
>>
>> Is it normal, or maybe there's solution to the issue? In my first
>> thought that may be the effect of the binary wxPython lib. used under
>> win, which is not compiled with my language support... But I'm not sure..
>>
> 
> GTK is the only supported platform where the native buttons have the
> concept of stock images and labels.  On the other platforms wx emulates
> just the mapping of the IDs to stock labels.  The string for the labels
> are fetched from the message catalog so if the system locale is set up
> correctly then it should be loading the translated values.  You can try
> using an explicit wx.Locale object instead.
> 

Thanks!



More information about the wxpython-users mailing list