PythonPan
PythonPan
pandas is better than list. ```python3 import random import asyncio import pandas as pd from nicegui import ui, native import plotly.graph_objects as go data = pd.DataFrame({ 'x':[ float(n) for n...
Do you want that link's style looks like normal text?
```python3 from nicegui import ui from typing import Any, Callable, Union from nicegui.element import Element ui.link.default_classes(replace='text-lg border-r-2') class link_ext(ui.link): def __init__(self, text: str = '', target: Union[Callable[..., Any], str, Element]...
@falkoschindler Hi,I make a change on this bug. It seems that `ui.input` in dialog won't update its value when you input it. But, when other event triggers `bind_value_from` of the...
It works well after modify. ```python3 from nicegui import ui class Counter: def __init__(self, name: str): self.name = name def counter(self): @ui.refreshable_method # or @ui.refreshable, same result def counter(): with...
Another example,maybe you needn't create a new instance but call it twice. ```python3 from nicegui import ui class Counter: def __init__(self, name: str): self.name = name @ui.refreshable # or @ui.refreshable,...
@evnchn You inspire me! I understand `@ui,refreshable` now. I think we should write it in doc , like `@ui.page`.
@kleynjan I get a new solution: ```python3 from nicegui import ui class Counter: def __init__(self, name: str): self.name = name @ui.refreshable_method # or @ui.refreshable, same result def counter(self): with ui.card():...
Here is a ugly patch, but i am not a python pro, so it is just a try. ```python3 # ugly patch is here from nicegui import ui from nicegui.functions.refreshable...
Nicegui 1.4.34, pywebview 5.1, Windows 10 ltsc build 19044.4412 No error in output. ```python3 from nicegui import ui, app app.native.settings['ALLOW_DOWNLOADS'] = True ui.button("Download", on_click=lambda: ui.download(b'Demo text','demo_file.txt')) ui.run(native=True) ``` 