wave-tour / examples /canvas.py
MartinT's picture
feat: Init.
2b4d75c
raw
history blame
No virus
457 Bytes
# Canvas
# A card that displays a freeform drawing canvas.
# A canvas card can synchronize its state with other canvas cards at the same URL.
# Open `/demo` in multiple browsers and watch them synchronize in realtime.
# #collaboration
# ---
from h2o_wave import site, data, ui
page = site['/demo']
page.drop()
page.add('example', ui.canvas_card(
box='1 1 4 7',
title='Sample Canvas',
width=500,
height=500,
data=dict(),
))
page.save()