Skip to content

msaJustPyUI Module

.justpy.justpy


Attributes

Classes

AjaxEndpoint

Bases: JustpyAjaxEndpoint

Justpy ajax handler

JustpyEvents

Bases: WebSocketEndpoint

Attributes

socket_id class-attribute
socket_id = 0

Functions

on_connect async
on_connect(websocket)
on_disconnect async
on_disconnect(websocket, close_code)
on_receive async
on_receive(websocket, data)

Method to accept and act on data received from websocket

Functions

convert_dict_to_object

convert_dict_to_object(d: Dict) -> Any

convert the given dict to an object

PARAMETER DESCRIPTION
d

dict

TYPE: Dict

RETURNS DESCRIPTION
obj

Any object that was represented by the input dict

TYPE: Any

redirect

redirect(url: str) -> WebPage

redirect to the given url

PARAMETER DESCRIPTION
url

the url to redirect to

TYPE: str

RETURNS DESCRIPTION
wp

a WebPage with a single Div that hat the redirect

TYPE: WebPage


Last update: September 28, 2022
Created: September 28, 2022