comparison libervia/pages/lists/_browser/__init__.py @ 1510:5ea06e8b06ed

browser: make bridge API closer to the one use with other frontends: `bridge.AsyncBridge` is not used instead of `aio_bridge.Bridge`
author Goffi <goffi@goffi.org>
date Mon, 22 May 2023 11:57:44 +0200
parents 106bae41f5c8
children
comparison
equal deleted inserted replaced
1509:106bae41f5c8 1510:5ea06e8b06ed
1 from browser import DOMNode, document, aio 1 from browser import DOMNode, document, aio
2 from javascript import JSON 2 from javascript import JSON
3 from aio_bridge import bridge, BridgeException 3 from bridge import AsyncBridge as Bridge, BridgeException
4 import dialog 4 import dialog
5 5
6 bridge = bridge() 6 bridge = Bridge()
7 7
8 8
9 async def on_delete(evt): 9 async def on_delete(evt):
10 evt.stopPropagation() 10 evt.stopPropagation()
11 evt.preventDefault() 11 evt.preventDefault()