Thanks for this bug report. I find the following:
On Windows, label(text='ab&cd') underlines the c, and never shows &.
On Mac, displays ok but each getkey() puts TWO events in the queue.
Okay on Ubuntu.
So there are two bugs, no & on Windows and double events with getkey.
Bruce Sherwood
Symion wrote:
> Has anyone else experienced this problem?
>
> I cannot display ord(38) character (&) when using label object!
>
> Here is a code snippet.
>
>
> --------------
>
> '''The & character ord(38), seems to be UNPRINTABLE when using label
> object.
> Press any key to continue'''
>
> from visual import *
>
> scene.visible = True
> A = label(text='&', height=22, color=(1,0,0))
>
> print __doc__
>
> for asc in range(33,126,1):
> A.text = 'ASCII %i = %s' %(asc,chr(asc))
> key = scene.kb.getkey()
> A.text = 'End'
>
> -------------
> ------------------------------------------------------------------------
>
> ------------------------------------------------------------------------------
> Download Intel® Parallel Studio Eval
> Try the new software tools for yourself. Speed compiling, find bugs
> proactively, and fine-tune applications for parallel performance.
> See why Intel Parallel Studio got high marks during beta.
> http://p.sf.net/sfu/intel-sw-dev
> ------------------------------------------------------------------------
>
> _______________________________________________
> Visualpython-users mailing list
> Vis...@li...
> https://lists.sourceforge.net/lists/listinfo/visualpython-users
>
|