Skip to content

msaJustPyUI Module

.jpcore.webpage


Created on 2022-09-02 modified version, original from JustPy @author: wf (modification swelcker)

Classes

WebPage

a web page

Attributes

allowed_events class-attribute
allowed_events = [
    "click",
    "visibilitychange",
    "page_ready",
    "result_ready",
    "keydown",
    "keyup",
    "keypress",
]
body_classes instance-attribute
body_classes = ''
body_html instance-attribute
body_html = ''
body_style instance-attribute
body_style = ''
cache instance-attribute
cache = None
components instance-attribute
components = []
cookies instance-attribute
cookies = {}
css instance-attribute
css = ''
dark instance-attribute
dark = False
data instance-attribute
data = {}
debug class-attribute
debug: bool = False
delete_flag class-attribute
delete_flag: bool = True
display_url instance-attribute
display_url = None
events instance-attribute
events = []
favicon instance-attribute
favicon = None
head_html instance-attribute
head_html = ''
highcharts_theme class-attribute
highcharts_theme: bool = None
html instance-attribute
html = ''
instances class-attribute
instances: Dict = {}
next_page_id class-attribute
next_page_id: int = 0
open instance-attribute
open = None
page_id instance-attribute
page_id = WebPage.next_page_id
redirect instance-attribute
redirect = None
reload_interval instance-attribute
reload_interval = None
sockets class-attribute
sockets: Dict = {}
tailwind class-attribute
tailwind: bool = True
template_file instance-attribute
template_file = 'tailwind.html'
title instance-attribute
title = 'JustPy'
use_cache instance-attribute
use_cache = False
use_websockets class-attribute
use_websockets: bool = True

Functions

__add__
__add__(other)
__iadd__
__iadd__(other)
__init__
__init__(**kwargs)
__len__
__len__()
__repr__
__repr__()
add
add(*args)
add_component
add_component(child, position = None)
add_event
add_event(event)
build_list
build_list()
delayed_update async
delayed_update(delay)
delete_components
delete_components()
delete_cookie(k)
get_components
get_components()
last
last()
on
on(event_type: str, func: typing.Callable)

add an event of the given event_type with the given function

PARAMETER DESCRIPTION
event_type

the type of the event without on_prefix

TYPE: str

func

the function to call (Callable)

TYPE: typing.Callable

on_disconnect async
on_disconnect(websocket = None)
react
react()
reload async
reload()
remove
remove(component)
remove_component
remove_component(component)
remove_page
remove_page()
run_event_function async
run_event_function(
    event_type, event_data, create_namespace_flag=True
)
run_javascript async
run_javascript(
    javascript_string, *, request_id=None, send=True
)
set_cookie(k, v)
to_html
to_html(indent = 0, indent_step = 0, format = True)
update async
update(websocket = None)

update the Webpage

PARAMETER DESCRIPTION
websocket

The websocket to use (if any)

DEFAULT: None

update_old async
update_old(*, built_list = None)

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