Problem with mathematical symbols

Hi everyone, I'm trying to build (on windows environment) a grid in which every cell contains a mathematical formula, the problem is the following:
when I try to put in the cells some mathematical symbol (such as those for "belong to", "for all" or "exists") with the method SetCellValue I always see "∊" as the value of the cells, even if I use both the unicode wx version and the right unicode strings for the symbols (such as u'\u2208' for "belong to" ). In fact if I do (on IDLE):

print u'\u2208'

everything works fine. I can't understand why I am wrong. I also tried to change the font of the cells in "Arial Unicode MS", but the results were the same.
Have you got any idea about?. Thanks in advance,
Massimiliano

···

_________________________________________________________________
Don't just search. Find. Check out the new MSN Search! http://search.msn.click-url.com/go/onm00200636ave/direct/01/

Massimiliano Costacurta wrote:

Hi everyone, I'm trying to build (on windows environment) a grid in which every cell contains a mathematical formula, the problem is the following:
when I try to put in the cells some mathematical symbol (such as those for "belong to", "for all" or "exists") with the method SetCellValue I always see "∊" as the value of the cells, even if I use both the unicode wx version and the right unicode strings for the symbols (such as u'\u2208' for "belong to" ). In fact if I do (on IDLE):

print u'\u2208'

everything works fine. I can't understand why I am wrong. I also tried to change the font of the cells in "Arial Unicode MS", but the results were the same.

Which version of Windows are you using? It works for me on XP with the Unicode version of wxPython 2.8.0.1 for cells that are using the default font. For example if I enable the code in GridSimple.py that shows a PyShell and then run the sample and do this in the PyShell I see the ∈ symbol:

···

frame.grid.SetCellValue(6,0, u'\u2208')

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