|
From: Bruce S. <Bru...@nc...> - 2007-10-26 23:42:07
|
Works fine for me on Windows. What operating system are you using? What version of Python? If you execute "print visual.version", what do you see? Bruce Sherwood sccs cscs wrote: > Hello, > I have a strange behaviour of the 'label' visaul class: > if i draw a label that is linked to a form, i shall draw it 2 times > until it is displayed correctly: The label is not on the sphere the > first time, and i shall wait (sleep(1)) before redrawing the label. Then > the label is correctly drawn. > > import visual > from time import sleep > > def draw_label(): > visual.label (frame = form, > pos = (0, 0, 0), > text = "(%.2f, %.2f,%.2f)"%(x0, y0, z0), > opacity = 0, > box = 0, > color = visual.color.red) > x0 = 2 > y0 = 2 > z0 = 10 > visual.sphere (radius = 2, pos = (0, 0, 0), color = visual.color.yellow) > form = visual.frame(name ="Guide") > form.pos = (x0, y0, z0) > visual.sphere (frame = form, radius = 1, pos = (0, 0, 0)) > draw_label() > sleep(1) > print "redraw!" > draw_label() > > Thank you for your help. > Zorgi > > ------------------------------------------------------------------------ > Ne gardez plus qu'une seule adresse mail ! Copiez vos mails > <http://www.trueswitch.com/yahoo-fr/> vers Yahoo! Mail > > > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > > > ------------------------------------------------------------------------ > > _______________________________________________ > Visualpython-users mailing list > Vis...@li... > https://lists.sourceforge.net/lists/listinfo/visualpython-users |