From: Bruce S. <Bru...@nc...> - 2006-12-30 06:13:28
|
Here's a specific example (I hadn't realized this worked with the beta version on Linux): from visual import * label(text=u'\u03a3') # displays capital sigma But this isn't currently supported on the beta version for Windows. Bruce Sherwood Jonathan Brandmeyer wrote: > Of note, the Linux 4.betaX releases should support UTF strings by > default in labels. > > -Jonathan > > On Fri, 2006-12-29 at 10:14 -0700, Bruce Sherwood wrote: > >>In the beta version of VPython (see the Recent developments section of >>vpython.org) you can do the following: >> >>label(text="S", font="symbol") # displays capital sigma >> >>Until this beta version you couldn't specify a font for a label. >> >>This is a limited capability which doesn't apply (for example) to window >>titles. It also doesn't immediately apply to labels in visual.graph or >>visual.controls, but those modules are pure Python code, so one could >>easily introduce a font option into those labels. >> >>Bruce Sherwood >> >>------------------------------------------------------------------------- >>Take Surveys. Earn Cash. Influence the Future of IT >>Join SourceForge.net's Techsay panel and you'll get the chance to share your >>opinions on IT & business topics through brief surveys - and earn cash >>http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV >>_______________________________________________ >>Visualpython-users mailing list >>Vis...@li... >>https://lists.sourceforge.net/lists/listinfo/visualpython-users > > |