pyqt setfocus
setFocus() # on Widget which should be focused
Jittery Jaguar
setFocus() # on Widget which should be focused