![]() |
|
#1
|
|||
|
|||
|
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
|
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Vizinfo box: help with aligning text | Woosuk Jang | Vizard | 4 | 07-15-2010 05:01 PM |
| Informationboxes with text | snoopy78 | Vizard | 3 | 07-16-2009 11:23 AM |
| Vizard tech tip: Text to Speech | Jeff | Vizard | 1 | 01-15-2009 10:39 PM |
| adding 2D text via script | V.shazzle | Vizard | 3 | 09-19-2005 03:45 PM |
| 3d Text with Transparent Borders | vjosh | Vizard | 3 | 12-01-2004 11:50 AM |