accents in wxPython 2.5 (gtk2)

Hello!

Just upgraded to wxPython-2.5 (gtk2).

I have some code like this:

self.filemenu.Append(ID_CONFIG_PAGINA, "Configurar &página", "Configurar
página")

which in wxPython 2.4 (gtk) worked just fine, but now the accented word (in
fact, the hole string) doesn't shows up (the menu shows a blank space)

I suspect it has to do with gtk2 vs gtk1.

Any suggestions?

Regards

   Juan Pablo

I just discovered that u"some text" would do.

Sorry

  Juan Pablo

···

On Tuesday 27 April 2004 16:39, you wrote:

Hello!

Just upgraded to wxPython-2.5 (gtk2).

I have some code like this:

self.filemenu.Append(ID_CONFIG_PAGINA, "Configurar &página", "Configurar
página")

Juan Pablo Romero wrote:

···

On Tuesday 27 April 2004 16:39, you wrote:

Hello!

Just upgraded to wxPython-2.5 (gtk2).

I have some code like this:

self.filemenu.Append(ID_CONFIG_PAGINA, "Configurar &página", "Configurar
página")

I just discovered that u"some text" would do.

Yep, strings need to be convertable to unicode in the unicode builds of wxPython. I've recently changed things for the next release so unicode conversion errors will raise an exception.

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!