Re: Tkinter - non-ASCII characters in text widgets problem

2009-06-26 Thread Sebastian Pająk
2009/6/27 Piet van Oostrum : >>>>>> Sebastian Pająk (SP) wrote: > >>SP> Maybe this picture will tell you more: >>SP> http://files.getdropbox.com/u/1211593/tkinter.png > >>SP> The original script: >>SP> http://files.getdropbox.com

Re: Tkinter - non-ASCII characters in text widgets problem

2009-06-26 Thread Sebastian Pająk
Maybe this picture will tell you more: http://files.getdropbox.com/u/1211593/tkinter.png The original script: http://files.getdropbox.com/u/1211593/test1.py May someone can confirm this osx behaviour? 2009/6/26 Sebastian Pająk : > 2009/6/26 norseman : >> Sebastian Pająk wrote: >

Re: Tkinter - non-ASCII characters in text widgets problem

2009-06-26 Thread Sebastian Pająk
>  in place where polish >> accented character should be (like "ęłąśł" etc) >> This problem is only on mac os x and it doesn't apply to button widget >> (where characters are correct) > > I see. So it is a font problem: if the square box is displayed, it means > that the font just doesn't have a gl

Re: Tkinter - non-ASCII characters in text widgets problem

2009-06-26 Thread Sebastian Pająk
2009/6/26 norseman : > Sebastian Pająk wrote: >>> >>> Can, but should not. >>> I read that the problem is when using the Polish language only. Otherwise >>> things work normally. Is that correct? >> >> Yes, correct >> >>> If so

Re: Tkinter - non-ASCII characters in text widgets problem

2009-06-25 Thread Sebastian Pająk
> Can, but should not. > I read that the problem is when using the Polish language only. Otherwise > things work normally. Is that correct? Yes, correct > If so then byte swap may be a problem.  Using the u'string' should solve > that. I am assuming you have the Polish alphabet working correctly

Re: Tkinter - non-ASCII characters in text widgets problem

2009-06-25 Thread Sebastian Pająk
2009/6/25 "Martin v. Löwis" : >> I've tried various UTF file encoding (also with BOM mark), use of >> u"text" > > Always use u"text". This should work. Everything else might not work. But I tried this here without success >> After applying this, the effect remains the same - one big garbage. > >

Tkinter - non-ASCII characters in text widgets problem

2009-06-25 Thread Sebastian Pająk
Hello I'm writing an application in Python 2.5.4 under Windows (xp sp3 en). I use Tkinter as the main GUI toolkit. The app is intended to be portable (not fully but win & mac os x is a must). It works as it should on my system, but when I've sent the program to my friend who has a mac computer, he