capture

Screen Capture.
from IPython.display import display, Image

source

setup_share


def setup_share(
    
):

Setup screen sharing

await setup_share()
---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)
Cell In[1], line 1
----> 1 await setup_share()

TypeError: object NoneType can't be used in 'await' expression

source

start_share


def start_share(
    
):
start_share()

source

capture_screen


def capture_screen(
    timeout:int=15
):

Capture the screen as a PIL image.


source

capture_tool


def capture_tool(
    timeout:int=15
):

Capture the screen. Re-call this function to get the most recent screenshot, as needed. Use default timeout where possible

# Don't run-all -- only run this after choosing a window to share
img = await capture_screen()
img.thumbnail((700,700))
# img