<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def handle_keypress(self):

 """When hitting tab, it handles if single or double tab"""

        if self.numpress == 2:
            self.sig_double_tab_pressed.emit(True)
        self.numpress = 0