#NEWLINE# def widget_grab_keyboard( self , widget ) : #NEWLINE# #INDENT# '\n            A widget can call this method to grab the keyboard focus\n            and receive keyboard messages. When done,\n            widget_ungrab_keyboard() must be called.\n        ' #NEWLINE# self . window . handle_KeyPress = widget . handle_KeyPress #NEWLINE# self . saved_focus = self . qtile . currentWindow #NEWLINE# self . window . window . set_input_focus ( )