LondonClass
LondonClass
> I think it is great to support numeric anchors as well as things like 'top', 'center' and 'bottom' - but I'd like to keep the former working (i.e. by...
I hope UIelement has a component based design pattern. This way, multiple functions can be implemented simultaneously on a UIElement. For example, the click effect component, with this component, the...
Have you used the latest version of the main branch? This may be related to #514
> I think more layout options is a fine idea. > > I've honestly not delved too deeply into making very complicated GUI layouts in any of my projects using...
need this
```python import time import base64 from cryptography.hazmat.primitives.hashes import SHA1 from cryptography.hazmat.primitives.twofactor.totp import TOTP key = "" decoded_key = base64.b32decode(key) totp = TOTP(decoded_key, 6, SHA1(), 30) print(totp.generate(time.time())) ```
How about allowing multiple windows created within one process? Or compatible with other interface packages like Tkinter?
Thanks for your reply. > This is unfortunately not in our hands, but it depends on implementation details of SDL, CPython, and Tk. It seems that pygame can be used...
我改的。当时没有测试linux环境。这个应该是sync函数的bug。能看一下具体的报错信息吗?能不能把完整的报错信息截图发出来
不是很懂为什么会这样。理论上这行代码引发错误会被捕获。 你可以研究研究为什么。 如果只想解决问题,可以试试使用asyncio.run(coroutine)代替sync(coroutine) ``` python def sync(coroutine: Coroutine) -> Any: """ 同步执行异步函数,使用可参考 [同步执行异步代码](https://nemo2011.github.io/bilibili-api/#/sync-executor) Args: coroutine (Coroutine): 执行异步函数所创建的协程对象 Returns: 该协程对象的返回值 """ try: asyncio.get_running_loop() except RuntimeError: return asyncio.run(coroutine) else: with ThreadPoolExecutor() as...