WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 06-25-2008, 09:31 AM
Uttama_vizard Uttama_vizard is offline
Member
 
Join Date: Sep 2007
Posts: 60
Thumbs up Keyboard options

Hi,

I am trying to build an application with radio buttons activated by keyboard instead of mouse. I am using these lines

def onKeyDown(key):
if key == 'A':
aRadio.visible(1)
aans = aRadio.get()
print aans

But, say there is another OK button
if key == 'D':
OKbutton.visible(0)
dans = OKbutton.get()
print dans

Now, I am trying, if an user presses the A and D button in succession, then I want some response.

if key == 'A':
aRadio.visible(1)
aans = aRadio.get()
print aans
if key == 'D':
OKbutton.visible(0)
dans = OKbutton.get()
print 'abcd'

But, it is not printing out 'abcd'.

Can anyone suggest where I am going wrong or is there is any better way?

Thanks in advance for the sugestion


Uttama
Reply With Quote
 


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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Custom Menu Options south_bank Vizard 5 07-07-2008 10:52 AM
What are the options for making a movie of a Vizard world? Karla Vizard 1 05-13-2008 10:56 AM
On Screen Keyboard betancourtb82 Vizard 14 10-03-2006 12:38 PM
Multiple Viewports in Vizard, Utilizing keyboard callback shivanangel Vizard 2 02-21-2006 04:56 PM
Timer vs. Keyboard input Wenamun Vizard 1 01-23-2006 09:04 PM


All times are GMT -7. The time now is 07:28 AM.


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