Changes in vizdlg or vizact in Vizard 5?
Hello,
I have a problem running most of my files in Vizard 5: To display text, images, ... I build my own vizdlg.Dialog class to create a panel which I can use to display and hide messages very easily (I used a small tutorial that is somewhere in the Vizard documentation). Since I upgrade to Vizard 5, the background of the panel won't hide anymore. To show you guys what I mean, I created a small example (with a simplified version of my vizdlg.Dialog class). The code pasted below works fine with Vizard 4: the text 'Bla' is displayed for 2 seconds, then the screen goes black However, in Vizard 5, the text will also go away after 2 seconds, but the grey background will stay without any error message. Have there been any changes to the built-in librarys that could cause such a problem? Cheers, Johannes EDIT: I fixed it by changing line 68 'self.panel.addAction(vizact.fadeTo(0,time=fade))' to 'self.panel.background.addAction(vizact.fadeTo(0,t ime=fade))' Code:
import os |
Thanks for reporting the issue and providing a sample. This is a regression and will be fixed in the next update.
|
Thank you for the quick reply!
While debugging, I also noticed that the background can be faded in and out (e.g. textPanel.message('Bla', fade = 2)), but for text items in a panel the 'addAction(vizact.fadeTo(x))' command does not seem to work. Is that as intended? I would really like the text to fade in and out as well as the background. Cheers, Johannes |
All times are GMT -7. The time now is 08:02 PM. |
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Copyright 2002-2023 WorldViz LLC