PythonPan

Results 49 comments of PythonPan

It's interesting. `editor`'s init value is `123`. First, input anything in editor and click `set value to 123(same)`,editor's display value(the text in editor) won't change. but after reloaded, input anything...

@falkoschindler It is a compatibility problem of `MSHTML` or `InternetExplorer`. I try to use chromium based browser which supports IE mode, and visit`localhost:8080`, it is blank. I open devtool, and...

> And what do we see in the screenshots? What does it all have to do with es-module-shims.js? The es-module and the other component which uses [module]( https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Modules ) syntax...

@tjongsma Download fixed version from https://developer.microsoft.com/zh-cn/microsoft-edge/webview2 Extract it to fix path or related path of your program. then set the os environ `WEBVIEW2_BROWSER_EXECUTABLE_FOLDER` to the path. the code is: ```python3...

@falkoschindler yes, https://github.com/ag-grid/ag-grid/blob/v32.1.0/community-modules/core/src/main.ts has no `RowSelectionOptions`, it was added in https://github.com/ag-grid/ag-grid/blob/v32.2.0/community-modules/core/src/main.ts

It is a little similar to #3217 . I change `LOOPBACK = False` in `.venv\Lib\site-packages\nicegui\elements\number.py` to `LOOPBACK = True`. The format shows corretly as set. Following code shows that `_props['model-value']`...

NiceGUI 3.0.0, Windows 11 ltsc, Python 3.13.7, We can see `'app shutdown'` when click button `'nicegui shutdown'` or use `ctrl+c`: ```python3 from nicegui import app, ui def app_startup(): print('app startup')...

@falkoschindler actually, We can ONLY see `'app shutdown'` when click button `'nicegui shutdown'` or use `ctrl+c`. If we click `'X'` button or button `'destroy window'`, app is still running.

I get a temporay solution by adding `app.shutdown` into `app.on_disconnect`: ```python3 from nicegui import app, ui def app_startup(): print('app startup') def app_shutdown(): print('app shutdown') app.on_startup(app_startup) app.on_shutdown(app_shutdown) app.on_disconnect(app.shutdown) @ui.page('/') def index():...

inspired by https://github.com/encode/uvicorn/discussions/1103#discussioncomment-8232135 you could do same as: ```python3 import uvicorn from fastapi import FastAPI from nicegui import ui, app import signal server = FastAPI() def init() -> None: @ui.page("/")...