vizinfo, vizdlg related questions
Dear all,
it seems that Vizard has quite a few ways to display text. Simple text boxes, vizinfo panels, dialog panels, grid panel, etc.... I have been using my own vizdlg.Dialog class so far, but there are some limitations and issues and I would like to start from scratch to find the best possible and most flexible way to display information. First of all: what is really the difference between using a vizinfo panel or a vizdlg panel? To me they seem to be both doing almost the same job with little differences. What do you suggest I use to display text and images in a flexible manner? I don't need to input information via the panels. Just information display. Second: I have not found a way to neatly wrap text. I would like the panel to be the same width, regardless of the length of the text and the text to wrapped in that panel. I have found that vizdlg panels may have minimal sizes, but if the text gets bigger the panel resizes accordingly. We have sometimes a lot of information for our test subjects and right now we need to break up the text strings manually, very tedious as you can imagine. Thank your for any help and input! Johannes |
The vizinfo.InfoPanel uses a vizdlg.GridPanel to display information.
Perhaps you could write a function to split the text into strings of a specific length. If you need additional flexibility with GUIs, you might look into Python add-ons such as wxPython or Tkinter. These can be used with Vizard. |
Thanks for the reply Jeff. Are there any plans by the Vizard team to improve the vizdlg class (e.g. include word wrapping)? I would like to keep the code as simple as possible so that others (that are not as experienced in Python) may still be able to make changes to the code themselves.
|
Support for wrapping text in vizdlg panels will be added in a future update. In the meantime, you can use the following code to enable text wrapping with Vizard 5.1:
Code:
import viz |
Thank you very much for the help, I really appreciate it!
|
All times are GMT -7. The time now is 08:38 PM. |
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Copyright 2002-2023 WorldViz LLC