|
From: Bruce S. <Bru...@nc...> - 2009-01-08 20:24:29
|
The only significant differences that I know of between Visual 3 and Visual 5 are that the following have not (yet) been implemented in Visual 5: scene.cursor.visible, and right-button and middle-button mouse events. These are listed as known bugs in the statement of new features in the documentation for Visual 5. Bruce Sherwood Stef Mientki wrote: > thanks Bruce, > > I didn't know that, > and indeed it works like a charm. > So now I can really test the differences between VP3 and VP5 ;-) > I'll report my findings. > > cheers, > Stef > > Bruce Sherwood wrote: >> But "hide" IS supported. It's unfortunate that there was a >> scene.hide() that was undocumented (and not implemented in Visual 5), >> but it has always been the case that scene.visible = False has worked >> in all versions of Visual. >> >> Nor am I sure that I understand what is meant by "resize not allowed >> during visible". Do you mean setting scene.width and scene.height? >> That didn't work in Visual 3, either. The following resizing works in >> both Visual 3 and Visual 5: >> >> from visual import * >> box() >> scene.mouse.getclick() >> scene.visible = False >> scene.width = 800 >> scene.visible = True >> >> Bruce Sherwood >> >> Stef Mientki wrote: >>> 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 >>> ------------------------------------------------------------------------------ >>> >>> 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 >> > > ------------------------------------------------------------------------------ > 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 |