def aps(self): pull.up('Scanning! Press [CTRL+C] to stop.') time.sleep(1) self.screen = Display(V__) thread = threading.Thread(target=self.screen.Shifter, args=(self.shift, self.iface1,), name="Verbose Sniffer") thread.daemon = True thread.start() self.shift.run()
def aps(self): pull.up('Scanning through the Area. Press [%sCTRL+C%s] to Stop. ' % (pull.BOLD, pull.END)) time.sleep(1) self.screen = Display() thread = threading.Thread(target=self.screen.Shifter, args=( self.shift, self.iface1, ), name="Verbose Sniffer") thread.daemon = True thread.start() self.shift.run()
def __init__(self, width: int, height: int, title: str): pygame_init() Notification.init() self.running = False self.display = Display(width, height, title) self.key_manager = KeyManager() self.mouse_manager = MouseManager() self.objet_manager = ObjetManager() self.keyboard_buffer = KeyboardBuffer() self.handler_manager = HandlerManager() self.state_manager = StateManager(self.mouse_manager, self.key_manager, self.keyboard_buffer, self.display) self.notification_manager = NotificationManager() self.handler_manager\ .add(self.mouse_manager) \ .add(self.key_manager) \ .add(self.keyboard_buffer) \ .add(Quit(self.shutdown)) \ .add(HUDManager(self.handler_manager, self.objet_manager))