(self, interface=None)
Attach interface to interpreter session.
Attach interface to interpreter session.
Attach interface to interpreter session .
def attach_interface(self, interface=None):
        """Attach interface to interpreter session."""
        if interface:
            self.queues.set(*interface.get_queues())
            # rebuild the screen
            self.display.rebuild()
            # rebuild audio queues
            self.sound.rebuild()
        else:
            # use dummy video & audio queues if not provided
            # but an input queue should be operational for I/O streams
            self.queues.set(inputs=queue.Queue())
def attach_interface ( self , interface = None ) : if interface : self . queues . set ( * interface . get_queues ( ) ) # rebuild the screen self . display . rebuild ( ) # rebuild audio queues self . sound . rebuild ( ) else : # use dummy video & audio queues if not provided # but an input queue should be operational for I/O streams self . queues . set ( inputs = queue . Queue ( ) )