Thread: viz.input
View Single Post
  #2  
Old 09-21-2011, 09:48 AM
farshizzo farshizzo is offline
WorldViz Team Member
 
Join Date: Mar 2003
Posts: 2,849
You can manually convert the string to an integer. Example:
Code:
strValue = viz.input('Enter a number:')
try:
	intValue = int(strValue)
	print intValue
except ValueError:
	print 'You did not enter a valid number'
Reply With Quote