npcole / npyscreen

Automatically exported from code.google.com/p/npyscreen
Other
481 stars 109 forks source link

Is there a way to issue a TAB command programmatically? #121

Open vincenzo-pappano opened 2 years ago

vincenzo-pappano commented 2 years ago

If programmatically I set a widget as non-editable I would like to programmatically tab to the next widget

vincenzo-pappano commented 2 years ago

I found a work-around by using the pyautogui library

I can tab

    pyautogui.press("tab")

and shift-tab

    pyautogui.keyDown('shift') 
    pyautogui.press("tab")
    pyautogui.keyUp('shift') 

Of course you have to be aware of your board layout, and be ready to deal with changes