WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 05-19-2008, 02:38 PM
farshizzo farshizzo is offline
WorldViz Team Member
 
Join Date: Mar 2003
Posts: 2,849
Sure, here is a script that shows how to customize the appearance of a drop-down menu and a slider:
Code:
import viz
viz.go()

droplist = viz.addDropList(pos=(0.5,0.5,0))
droplist.addItems(['one','two','three'])

droplist.color(viz.RED,viz.DROPLIST_BORDER)
droplist.color(viz.BLUE,viz.DROPLIST_BACK)
droplist.color(viz.YELLOW,viz.DROPLIST_TEXT)
droplist.color(viz.PURPLE,viz.DROPLIST_BACK_SEL)
droplist.color(viz.WHITE,viz.DROPLIST_TEXT_SEL)


slider = viz.addSlider(pos=(0.5,0.1,0))

slider.barpicture('ball.jpg')
slider.tickpicture('gb_noise.jpg')
Reply With Quote
  #2  
Old 05-20-2008, 04:27 AM
south_bank south_bank is offline
Member
 
Join Date: May 2008
Location: Wolverhampton
Posts: 11
I knew it was something simple . Thanks a lot, again for the quick reply, it's really appreciated as I'm in the middle of my dissertation at the moment!
Reply With Quote
Reply

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

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


All times are GMT -7. The time now is 03:08 AM.


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