#53 invisible label text

open
nobody
display (14)
5
2001-11-26
2001-11-26
Bruce Sherwood
No

Glen Rivard <g_rivard@jet2.net> reports the following
bug, which I have confirmed. Comment in the
scene.visible = 0 line, and the second label shows a
box but no text.

from visual import *

box(color=color.green)
Label1 = label(pos=(0,0,0), color=color.black,
xoffset=40, yoffset=0, height=20, border=6, line=0,
opacity=0, linecolor=color.black, text='One')
rate(1)
Label1.visible = 0

##scene.visible = 0
scene.visible = 1

Label2 = label(pos=(0,0,-1), color=color.black,
xoffset=40, yoffset=0, height=20, border=6, line=0,
opacity=0, linecolor=color.black, text='Two')

Discussion

  • fthibaud
    fthibaud
    2005-09-21

    Logged In: YES
    user_id=1349297

    A real problem when you work with multiple scenes and
    display values in label ! the text exists but is not visible
    (if you change the text, the size of the "empty" label changes.