self.send_command("0100") time.sleep(2) ready = self.get_result() print ready time.sleep(2) wx.PostEvent(self._notify_window, DebugEvent([2,"0100 response1:" + ready])) #UNABLE TO CONNECT #SEARCHING............... if ready=="SEARCHING...": time.sleep(2)