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/u/1211593/test1.py > >>SP> May someone can confirm this osx behaviou

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

2009-06-26 Thread 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/u/1211593/test1.py >SP> May someone can confirm this osx behaviour? Yes, I get the same. But it is a p

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

2009-06-26 Thread Martin v. Löwis
> And I do not see any f3 anywhere except in the doc ref I copy/duped and > in this file. That surely is a bug in your email program - get a better one. Take a look at http://mail.python.org/pipermail/python-list/2009-June/717666.html which displays correctly - maybe you can find a web browser

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

2009-06-26 Thread Scott David Daniels
norseman wrote: Scott David Daniels wrote: norseman wrote: ... A note here: In reading the original posting I get ... then an e with a goatee Here's something to try in any future circumstances: Good thought, good idea, useful tool. BUT - compare your output to what I *see*.

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

2009-06-26 Thread norseman
Scott David Daniels wrote: norseman wrote: ... A note here: In reading the original posting I get symbols that are not familiar to me as alphabet. From the line in your original: Label(root, text='ęóąśłżźćń').pack() I see text=' then an e with a goatee a capi

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: Can, bu

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 then byte swap may be a problem.  Using the u'string' should solve >>>

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

2009-06-25 Thread Scott David Daniels
norseman wrote: ... A note here: In reading the original posting I get symbols that are not familiar to me as alphabet. From the line in your original: Label(root, text='ęóąśłżźćń').pack() I see text=' then an e with a goatee a capitol O with an accent symbol o

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

2009-06-25 Thread MRAB
Sebastian Pająk wrote: You're providing the same text for a Button and a Label. On Mac OSX the Button shows the text correctly, but the Label doesn't. Is this correct? Yes this is correct. My first mail is here: http://mail.python.org/pipermail/python-list/2009-June/717666.html My only other

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

2009-06-25 Thread Martin v. Löwis
>>> After applying this, the effect remains the same - one big garbage. >> Can you please be more specific? What is "one big garbage"? >> > > There is a square (or some other weird sign) ***PLEASE*** be specific. A square box is something *completely* different than any other weird sign. It is im

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

2009-06-25 Thread 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 then byte swap may be a problem. Using the u'string' should solve that. I am assuming you have the Polish alphabet w

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 norseman
Sebastian Pająk wrote: 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 b

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

2009-06-25 Thread MRAB
Sebastian Pająk wrote: 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 b

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

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

2009-06-25 Thread 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. > After applying this, the effect remains the same - one big garbage. Can you please be more specific? What is "one big garbage"? > I'm out of idea

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