Falko Schindler

Results 231 comments of Falko Schindler

I see. Try passing the `request` object to `Client`: ```py with Client(page(""), request=request) as client: ```

The line between internal/private and public API is a bit blurry in Python. You can `from nicegui import Client`, which is useful for type annotations, but also allows to implement...

I think the problem is that `confirm_mission` is called without UI context so that `ui.notify` doesn't know on which client (browser tab) to show the notification. Try wrapping it with...

I'm wondering if we need the `Future` at all. In a nutshell, it looks like we can boil it down to this: ```py class OperatorGUI: def __init__(self) -> None: with...

Hi @fabian0702, thanks for the pull request! It's an interesting idea and I just started to dive into it. Unfortunately I could not get the demo running in isolation. Somehow...

Thanks for reporting this issue, @mjchl! It's strange though, because `ui.log` simply calls `self.remove(0)` to remove the first element - nothing special. Do you, by any chance, use multi-threading? Manipulating...

@fabian0702 Have you tried running the demo in isolation? ```py with ui.scene().classes('w-2/3 h-64') as scene: teapot = 'https://upload.wikimedia.org/wikipedia/commons/9/93/Utah_teapot_(solid).stl' scene.stl(teapot).scale(0.3) with ui.row().classes('w-full'): with ui.scene(parent_scene=scene).classes('w-1/3 h-32') as child_scene_1: child_scene_1.move_camera(x=1, y=-3, z=5) with...

Interesting. Maybe you're keeping references to log elements that are actually already removed from the client. But I'm still struggling with a reproduction, even when I reduce the timer interval...

Thanks @fabian0702, now it's working. 🙂 I just experimented with the following demo: ```py with ui.scene() as main_scene: main_scene.sphere() child_scene = ui.scene(parent_scene=main_scene) ui.button('Add sphere to main scene', on_click=lambda: main_scene.sphere().move(x=1)) ui.button('Add...

@fabian0702 Sorry for keeping you waiting for two weeks now. Since this is a rather tricky feature which takes some focus to get right, I procrastinated quite a bit. Now...