James Brock

Results 280 comments of James Brock

I think in your case it would be best to [`create_task`](https://docs.python.org/3/library/asyncio-task.html#asyncio.create_task) after your app mounts. ```python async def timed_print(): while True: await asyncio.sleep(5) print("Hello") ``` ```python class MyComponent(ed.Component): background_tasks =...

The docs discuss how to run async event handlers. https://pyedifice.github.io/base_components.html#events

I've confirmed this that Space and Enter do not fire `QPushButton.clicked()`, which is strange because the docs say they do. https://doc.qt.io/qtforpython-6/PySide6/QtWidgets/QPushButton.html#detailed-description > A push button emits the signal [clicked()](https://doc.qt.io/qtforpython-6/PySide6/QtWidgets/QAbstractButton.html#PySide6.QtWidgets.PySide6.QtWidgets.QAbstractButton.clicked) when...

Ah it’s because edifice is using `mousePressEvent`. https://github.com/fding/pyedifice/blob/53007e112912d870c9202e14c9d8a0884d83bf24/edifice/base_components.py#L313-L323

I tried to solve this by making the `on_click` prop use the [`clicked()`](https://doc.qt.io/qtforpython-6/PySide6/QtWidgets/QAbstractButton.html#PySide6.QtWidgets.PySide6.QtWidgets.QAbstractButton.clicked) signal but it didn't work because two events would get raised for a single mouse click. So...

The `ButtonView` component which has an `on_trigger` prop that handles both key press and mouse clicks is now published as part of Edifice. https://pyedifice.github.io/stubs/edifice.components.button_view.ButtonView.html We should think about how we...

This could be an intermediate step for transitioning from classic Nix to flakes https://nixos.wiki/wiki/Flakes#Accessing_flakes_from_Nix_expressions

I guess flakes are still technically experimental though so no rush.

I'm adding protobuf to a Python project and I'm planning to use **python-betterproto v2.0.0b6**. Can I use this beta version? The beta version seems pretty usable. Are there going to...

I wrote a protobuf implementation for the PureScript language and for it I created a Nix build system which can [run the Google conformance tests](https://github.com/xc-jp/purescript-protobuf/tree/master/conformance) without any other configuration or...