WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #4  
Old 08-04-2009, 04:06 PM
farshizzo farshizzo is offline
WorldViz Team Member
 
Join Date: Mar 2003
Posts: 2,849
You can use the undocumented vizdlg module to add the items within a panel. Here is a modified version of the script that uses the module:
Code:
import viz
import vizdlg
viz.go()

panel = vizdlg.Panel(layout=vizdlg.LAYOUT_VERT_LEFT,fontSize=25)
panel.setPosition(10,500,0)

def addSliderCheckbox():
	"""Create new row in panel containing slider and checkbox"""
	row = vizdlg.Panel(layout=vizdlg.LAYOUT_HORZ_CENTER,background=False,border=False)
	slider = row.addItem(viz.addSlider())
	checkbox = row.addItem(viz.addCheckbox())
	panel.addItem(row)
	return slider,checkbox

slider1,check1 = addSliderCheckbox()
check1.set(True)

slider2,check2 = addSliderCheckbox()
slider2.set(0.5)
Reply With Quote
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Create line and vertex Chrissy2009 Vizard 2 07-20-2009 10:53 AM
Draw Line between Points Chrissy2009 Vizard 2 05-13-2009 04:42 AM
displaying random scenes etc cl113 Vizard 1 05-10-2009 05:14 PM
multiple views durf Vizard 3 05-07-2009 11:26 AM
Draw Line between Points selected by mouse Johannes Vizard 7 01-07-2005 02:50 PM


All times are GMT -7. The time now is 04:25 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
Copyright 2002-2023 WorldViz LLC