|
@@ -2,7 +2,6 @@
|
|
import asyncio
|
|
import asyncio
|
|
import inspect
|
|
import inspect
|
|
import re
|
|
import re
|
|
-import sys
|
|
|
|
from contextlib import contextmanager
|
|
from contextlib import contextmanager
|
|
from typing import Callable, Union
|
|
from typing import Callable, Union
|
|
|
|
|
|
@@ -107,7 +106,6 @@ with ui.row().classes('flex w-full'):
|
|
ui.label('Output:')
|
|
ui.label('Output:')
|
|
output = ui.label('').classes('text-bold')
|
|
output = ui.label('').classes('text-bold')
|
|
|
|
|
|
-
|
|
|
|
with example(ui.label):
|
|
with example(ui.label):
|
|
ui.label('some label')
|
|
ui.label('some label')
|
|
|
|
|
|
@@ -327,7 +325,6 @@ with example(async_dialog):
|
|
|
|
|
|
ui.button('Await a dialog', on_click=show)
|
|
ui.button('Await a dialog', on_click=show)
|
|
|
|
|
|
-
|
|
|
|
tooltip = '''### Tooltips
|
|
tooltip = '''### Tooltips
|
|
Simply call the `tooltip(text:str)` method on UI elements to provide a tooltip.
|
|
Simply call the `tooltip(text:str)` method on UI elements to provide a tooltip.
|
|
'''
|
|
'''
|
|
@@ -428,7 +425,6 @@ with example(binding):
|
|
ui.toggle({1: 'a', 2: 'b', 3: 'c'}).bind_value(demo, 'number')
|
|
ui.toggle({1: 'a', 2: 'b', 3: 'c'}).bind_value(demo, 'number')
|
|
ui.number().bind_value(demo, 'number')
|
|
ui.number().bind_value(demo, 'number')
|
|
|
|
|
|
-
|
|
|
|
with example(ui.timer):
|
|
with example(ui.timer):
|
|
from datetime import datetime
|
|
from datetime import datetime
|
|
|
|
|
|
@@ -480,7 +476,6 @@ with example(ui.page):
|
|
ui.link('Visit other page', '/other_page')
|
|
ui.link('Visit other page', '/other_page')
|
|
ui.link('Visit dark page', '/dark_page')
|
|
ui.link('Visit dark page', '/dark_page')
|
|
|
|
|
|
-
|
|
|
|
with example(ui.open):
|
|
with example(ui.open):
|
|
with ui.page('/yet_another_page') as other:
|
|
with ui.page('/yet_another_page') as other:
|
|
ui.label('Welcome to yet another page')
|
|
ui.label('Welcome to yet another page')
|