From: Stef M. <s.m...@ru...> - 2009-01-08 17:20:25
|
Bruce Sherwood wrote: > That's a very strange bug in VP3; I have no idea what is the cause. I > note that creating a new label after making the window visible fails > to show any text, though the box surrounding the (nonvisible) text is > the appropriate width. If on the other hand no label is created before > the window manipulations are carried out, a new label does show text. > Very strange. > > The only workaround that I can see is to use VP5. > I was afraid to get that answer ;-) And yes, probably it's the best way to go, but then embedding of VPython isn't possible anymore ( hide not supported, resize not allowed during visible) :-( thanks anyway, cheers, Stef > Bruce Sherwood > > Stef Mientki wrote: >> hello, >> >> the simple program below, hiding the scene for a moment, >> lets the text disappear in VP3 (VP5 works ok). (winXP-sp2) >> Is there a workaround ? >> >> thanks, >> Stef >> >> >> from visual import * >> >> label ( text = 'Click to show problem' ) >> >> while True : >> rate ( 50 ) >> if scene.mouse.clicked > 0 : >> while scene.mouse.clicked > 0 : >> scene.mouse.getclick() >> scene.visible = False >> scene.visible = True >> >> >> ------------------------------------------------------------------------------ >> >> Check out the new SourceForge.net Marketplace. >> It is the best place to buy or sell services for >> just about anything Open Source. >> http://p.sf.net/sfu/Xq1LFB >> _______________________________________________ >> Visualpython-users mailing list >> Vis...@li... >> https://lists.sourceforge.net/lists/listinfo/visualpython-users > > |