ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> tcl-mac
tcl-mac
Re: [MACTCL] Re: unicode/tkinter difficulties on macosx
by Vincent Rioux other posts by this author
Oct 19 2005 4:26AM messages near this date
[MACTCL] Re: unicode/tkinter difficulties on macosx | RE: [MACTCL] Re: unicode/tkinter difficulties on macosx
thank you for your reply.
well, i already tried to change of font, but still it won't take this index.

--------------------------------------------------------------------
from Tkinter import *
import tkFont
root = Tk()
myFont = tkFont.Font(size=24, family='Junicode')
w = Label(root, text=u'\u0254', font=myFont)
w.pack()
root.mainloop()
--------------------------------------------------------------------

you can find junicode on the web:
http://www.engl.virginia.edu/OE/junicode/junicode.html

for the code of the character I wanted to display :
http://www.engl.virginia.edu/OE/junicode/docs/junicode_ipa.html

by advance many thanks
vincent


Russell E. Owen wrote:

> In article <4354C5DE.5030003@[...].org>,
>  vincent rioux <vincent.rioux@[...].org> 
>  wrote:
> 
>   
> 
> >w = Label(root, text=u'\u0254')
> >...
> >This should display an 'open o' of the IPA.
> >It happens to work with python from FINK (hence using x11) but I just 
> >can't get it to work on pythonw2.4/tcl-tk acqua. It will only display an 
> >empty square....
> >    
> >
> 
> My guess is that the font you are using is missing the character in 
> question. Try setting the font of the widget to something with a richer 
> character set.
> 
> -- Russell
> 
> 
> 
> -------------------------------------------------------
> This SF.Net email is sponsored by:
> Power Architecture Resource Center: Free content, downloads, discussions,
> and more. http://solutions.newsforge.com/ibmarch.tmpl
> _______________________________________________
> Tcl-mac mailing list
> Tcl-mac@[...].net
> https://lists.sourceforge.net/lists/listinfo/tcl-mac
> 
>   
> 
Attachments:
unknown1
unknown2
unknown1
unknown2

Thread:
Russell E. Owen
Vincent Rioux
Alastair Davies
Vincent Rioux
Vincent Rioux
Alastair Davies
James Tittle
Revar Desmera
Vincent Rioux
Alastair Davies

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved