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
|