I am using wxGlade 2.8.12.1.
All the labels I create on the GUI, when I generate the code for those,an "" (underscore) gets appended at the beginning. I do not want that. Has someone experienced this before?
Is there a reason why this happens? I combed through all the options and I do no see something that would do so…obviously!
****("Speed : "))— it looks like this!
Any suggestions?
I am using wxGlade 2.8.12.1.
All the labels I create on the GUI, when I generate the code for those,an “_” (underscore) gets appended at the beginning. I do not want that.
This is an internationalization feature. The underscore is actually a function that returns a translated string, using the gnu gettext system. See:
http://wiki.wxpython.org/RecipesI18n
Not sure if/ how it can be turned of in wxGlade, but maybe knowing what it is will help you find it.
-Chris
···
On May 30, 2013, at 6:39 PM, Kavitha Bhaskaran kukki.kanchana@gmail.com wrote:
Has someone experienced this before?
Is there a reason why this happens? I combed through all the options and I do no see something that would do so…obviously!
_("Speed : "))— it looks like this!
Any suggestions?
–
You received this message because you are subscribed to the Google Groups “wxPython-users” group.
To unsubscribe from this group and stop receiving emails from it, send an email to wxpython-users+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
Unfortunately the python shell replaces _ with a shortcut to the
last evaluation result which can make debugging interesting to say
the least.
If you untick “Enable gettext support” then they should go away.
Steve
···
On 31/05/13 04:20, Chris Barker - NOAA
Federal wrote:
On May 30, 2013, at 6:39 PM, Kavitha Bhaskaran <kukki.kanchana@gmail.com >
wrote:
I am using wxGlade 2.8.12.1.
All the labels I create on the GUI, when I generate the code
for those,an “_” (underscore) gets appended at the beginning.
I do not want that.
This is an internationalization feature. The underscore is
actually a function that returns a translated string, using the
gnu gettext system. See:
http://wiki.wxpython.org/RecipesI18n
Not sure if/ how it can be turned of in wxGlade, but maybe
knowing what it is will help you find it.
-Chris
–
Steve Gadget Barnes
Great that worked! Thanks Steve and Chris!
···
On Thursday, May 30, 2013 9:49:19 PM UTC-7, Gadget Steve wrote:
On 31/05/13 04:20, Chris Barker - NOAA > Federal wrote:
On May 30, 2013, at 6:39 PM, Kavitha Bhaskaran <kukki.k...@gmail.com > > > wrote:
I am using wxGlade 2.8.12.1.
All the labels I create on the GUI, when I generate the code
for those,an “_” (underscore) gets appended at the beginning.
I do not want that.
This is an internationalization feature. The underscore is
actually a function that returns a translated string, using the
gnu gettext system. See:
http://wiki.wxpython.org/RecipesI18n
Not sure if/ how it can be turned of in wxGlade, but maybe
knowing what it is will help you find it.
-Chris
Unfortunately the python shell replaces _ with a shortcut to the
last evaluation result which can make debugging interesting to say
the least.
If you untick "Enable gettext support" then they should go away.
Steve
–
Steve Gadget Barnes