Thread: Text Box
View Single Post
  #1  
Old 08-04-2010, 08:23 AM
malmct malmct is offline
Member
 
Join Date: Aug 2010
Posts: 3
Text Box

I'm trying to use a textbox for text entry. However, whenever I call .get() on the text box, it only returns an empty string, regardless of whats in the box.

Code:
class makeMenu:
	def __init__(self):
		
		#Menu Generation
		self.treadMenu=vizmenu.add()
		self.command=self.treadMenu.add("Commands")
		self.speed=self.treadMenu.add("Speed")
		
		#Command Box

		self.go=self.command.add(viz.BUTTON_LABEL,"GO")
		self.stop=self.command.add(viz.BUTTON_LABEL,"STOP")

		
		#Speed Box
		self.lspeed=self.speed.add(viz.TEXTBOX, "LEFT BELT SPEED:")
		self.rspeed=self.speed.add(viz.TEXTBOX, "RIGHT BELT SPEED:")

                          vizact.onbuttondown(trMenu.go, moveBuffer, trMenu.lspeed.get(), trMenu.rspeed.get())

def moveBuffer(lsp, rsp):
	print lsp
lsp is always an empty string.
Reply With Quote