1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. Anuncie Aqui
    Anuncie aqui você Também: fdantas@4each.com.br

[Python] Is it possible to replace the loop created from asyncio with QtAsyncio?

Discussão em 'Python' iniciado por Stack, Setembro 15, 2025.

  1. Stack

    Stack Membro Participativo

    I'm trying to use the QtAsyncio library in pyside 6 and with the python-snapcast library and i can't manage to find a way to replace the asyncio loop that the create_server function necessitates with something from QtAsyncio

    I tried to use QtAsyncio.run since it creates the loop by itself but the create_server function necessitates a variable with the loop.

    server = QtAsyncio.run(create_server(ip_value))


    this is the normal implementation with asycnio

    server = loop.run_until_complete(create_server(loop, 'localhost'))

    Continue reading...

Compartilhe esta Página