View Single Post
  #1  
Old 11-17-2017, 10:47 AM
Vishav Vishav is offline
Member
 
Join Date: Jun 2017
Posts: 57
How to change position of Radio Button in vizinfo.infoPanel?

Dear all

I want second radio button shown in the attached image near to ball picture as in case of apple. Use of set position command of the radio button is not making any effect. How to do it?

Source Code:
infoBox = vizinfo.InfoPanel('What object i am interested in?',fontSize=20,window=viz.MainWindow,icon=False, align=viz.ALIGN_CENTER)
infoBox.addSeparator(padding=(10,10))
infoBox.setTitle( 'Question 1' )
Apple = infoBox.addLabelItem('', viz.addRadioButton('color'))
infoBox.addSeparator(padding=(200,200))
#Ball.setPosition(680,0,500)
mapPos = [700,450,500]
mapScale = [200,200,200]
apple_i = viz.addTexQuad(parent=viz.ORTHO,scale=mapScale,pos =mapPos)
apple_i.texture(viz.addTexture('D:\PhD\Study-I_Part_I\Textures\Apple.jpg'))
apple_i.drawOrder(10)
ball_i= viz.addTexQuad(parent=viz.ORTHO,scale=mapScale,pos =[700,215,500])
ball_i.texture(viz.addTexture('D:\PhD\Study-I_Part_I\Textures\Ball.jpg'))
ball_i.drawOrder(10)
Ball= infoBox.addLabelItem('', viz.addRadioButton('color',pos=(680,500,500)))

submitButton = infoBox.addItem(viz.addButtonLabel('Submit'),align =viz.ALIGN_CENTER)
yield viztask.waitButtonUp(submitButton)

Regards

Vishav
Attached Thumbnails
Click image for larger version

Name:	Capture.JPG
Views:	983
Size:	32.1 KB
ID:	961  
Reply With Quote