def watch_thread(self):
        '''watch for menu events from child'''
        from mp_settings import MPSetting
        try:
            while True:
                msg = self.parent_pipe_recv.recv()
                if self.menu_callback is not None:
                    self.menu_callback(msg)
                time.sleep(0.1)
        except EOFError:
            pass
def watch_thread ( self ) : from mp_settings import MPSetting try : while True : msg = self . parent_pipe_recv . recv ( ) if self . menu_callback is not None : self . menu_callback ( msg ) time . sleep ( 0.1 ) except EOFError : pass
watch for menu events from child