self.stdscr.nodelay(1) self.stdscr.timeout(0)# Put the interface it in managed mode# to perform the scanningself.wifispy.level = level self.wifispy.set_iface_in_managed_mode()# Show scanning messageself.stdscr.box() self.stdscr.addstr(curses.LINES/2, curses.COLS/2-5,"Scanning...", ...