Exemplo n.º 1
0
 def get_screen_async(self, **kwargs):
     """Async version of get_screen()"""
     request = compositor_pb2.GetScreenRequest()
     return self.call_async(self._stub.GetScreen, request,
                            self._name_from_response,
                            self._compositor_error_from_response, **kwargs)
Exemplo n.º 2
0
 def get_screen(self, **kwargs):
     """Get the currently selected screen"""
     request = compositor_pb2.GetScreenRequest()
     return self.call(self._stub.GetScreen, request,
                      self._name_from_response,
                      self._compositor_error_from_response, **kwargs)