![]() |
|
#3
|
|||
|
|||
|
The following code adds a line to mark the panel as dirty and recompute the layout. Does this work the way you would expect?
Code:
import viz, vizinfo, vizact
viz.go()
ip = vizinfo.InfoPanel('', icon=False, align=viz.ALIGN_CENTER)
text = ip.addItem(viz.addText('hi'), fontSize=18, align=viz.ALIGN_CENTER_CENTER)
panel = ip.getPanel()
def setMessage():
text.message('this is a looooooooong line')
panel.dirtyLayout()
vizact.onkeydown(' ', setMessage)
|
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Cave Collision problem | TopazFrost | Vizard | 2 | 02-13-2014 03:34 PM |
| The problem of adding two .ive models | hengshan.li | Vizard | 1 | 08-08-2011 01:04 AM |
| Vizard problem | mizutani_jun | Vizard | 4 | 01-09-2011 04:39 PM |
| problem with female animations | vmonkey | Vizard | 1 | 10-07-2005 11:36 AM |
| PROBLEM: Picture-in-Picture breaks textures?!? | vcarlson | Vizard | 4 | 10-05-2004 05:22 PM |