Re: NameError: name '_' is not defined

William Luitje <[email protected]>
Newsgroups gmane.comp.python.wxglade
Message-ID <CACDBsVU8Y3Q1pJ0Y38s9oLTCHZp6yiLfWUgvjhXQG9ZGA8wRsg@mail.gmail.com>
Just add the following function to your source code:


def _( text ):
    return text

It works for my use case anyway.

This is evidently a convention to facilitate handling different character
sets or something like that, from what I've read.

On Thu, Oct 8, 2015 at 12:43 AM, Carsten Grohmann <[email protected]>
wrote:

> Hi Alain,
>
> Alain Boulé schrieb am 07.10.2015:
> > I am starting wxGlade by typing:
> >
> > python main.py
> The name of this file is misleading. That's not the file to start.
> Please use wxglade.py resp. wxglade.pyw instead.
>
> The version 0.7.0 has a minor bug. wxGlade need a private directory
> C:\Users\<your user name>\AppData\Roaming\wxglade to store runtime
> information as well as log files. Unfortunatally it doesn't create this
> directory itself. Please create the wxglade directory manually and
> restart wxGlade after that.
>
> You may think about using current development version "0.7.1 RC1"
> from https://bitbucket.org/agriggio/wxglade/get/tip.zip. The
> installation is described in "Installing from Source"
> http://wxglade.sourceforge.net/manual/ch01s05.html#idm140098987625888
>
> HTH,
> Carsten
>
>
> ------------------------------------------------------------------------------
> _______________________________________________
> wxGlade-general mailing list
> wxGlade-general-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
> https://lists.sourceforge.net/lists/listinfo/wxglade-general
>

------------------------------------------------------------------------------

_______________________________________________
wxGlade-general mailing list
wxGlade-general-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
https://lists.sourceforge.net/lists/listinfo/wxglade-general
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.