TimeTagger 一个时间标记器

 ✒️ @halomaster 📅 09 Sep 2022, 03:53 GMT⋮ 【前端开发】 

[【TimeTagger】](https://github.com/almarklein/timetagger) 有趣的一点是这个项目采用了Python来写前端的逻辑;引入了 [【pscript】 项目](https://github.com/flexxui/pscript) 来把Python代码编译到JS。 [【参考】](https://github.com/almarklein/timetagger/blob/main/timetagger/app/front.py) [【例子】](https://flexx.readthedocs.io/en/stable/examples/)


[1] @halomaster • 09 Sep 2022, 17:32 GMT 
从PScript深挖下去发现了 [【flexx框架】](https://zhuanlan.zhihu.com/p/89896456)


[2] @halomaster • 10 Sep 2022, 00:05 GMT 
Flexx 可以在 Jupyter notebook 中以交互方式使用。使用`flx.init_notebook()` 将注入必要的 JS 和 CSS。`%gui asyncio`用于启用 Flexx 事件系统。简单的小部件(例如按钮)可以很好地显示,但对于其他小部件,您可能希望使用它来指定最小尺寸。`SomeWidget(minsize=300)`


1 of 1 pages  2 replies