Re: wxGlade tutorial

"Brendan Simon (eTRIX)" <[email protected]>
Newsgroups gmane.comp.python.wxglade
Organization eTRIX pty ltd
Message-ID <[email protected]>
On 14/11/17 9:56 am, Peter Bradley wrote:
>
> I have been trying to follow the wxGlade tutorial.  With some
> difficulty I got some generated code that looked as though it would be
> OK, but when I tried to run it, I got the following error from Python3:
>
> Traceback (most recent call last):
>   File "/home/peter/wxglade/tutorial01/tut01.py", line 12, in <module>
>     frame = MyFrame(None)
>   File "/home/peter/wxglade/tutorial01/tut01.py", line 8, in __init__
>     wxout.TutorialFrame.__init__(self,parent)
>   File "/home/peter/wxglade/tutorial01/wxglade_out.py", line 25, in
> __init__
>     wxglade_tmp_menu.Append(wx.ID_ANY, _("New"), "", wx.ITEM_NORMAL)
> NameError: name '_' is not defined
>

This error has to do with `gettext` support.

Do a google search for "wxglade NameError: name '_' is not defined"

Here is one answer:

https://sourceforge.net/p/wxglade/mailman/message/3917327/

Regards,
Brendan.

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot

_______________________________________________
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.