![]() |
|
#5
|
|||
|
|||
|
Hello,
I was trying by using nested if loop: aRadio = QuestionBox.add(viz.RADIO, 0, "A. 1") bRadio = QuestionBox.add(viz.RADIO, 0, "B. 2") cRadio = QuestionBox.add(viz.RADIO, 0, "C. 3") OKbutton = QuestionBox.add(viz.BUTTON, "OK") def onKeyDown(key): if key == 'A': if key == 'D': print 'abcd' viz.callback(viz.KEYDOWN_EVENT,onKeyDown) Here, A is my first option and D is my OK button. So, what I want is if the user presses A and subsequently D (i.e. OK button), I must print something say 'abcd'. Are there further options available for consecutive keyboard entries? Thanks Uttama |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Custom Menu Options | south_bank | Vizard | 5 | 07-07-2008 11:52 AM |
| What are the options for making a movie of a Vizard world? | Karla | Vizard | 1 | 05-13-2008 11:56 AM |
| On Screen Keyboard | betancourtb82 | Vizard | 14 | 10-03-2006 01:38 PM |
| Multiple Viewports in Vizard, Utilizing keyboard callback | shivanangel | Vizard | 2 | 02-21-2006 05:56 PM |
| Timer vs. Keyboard input | Wenamun | Vizard | 1 | 01-23-2006 10:04 PM |