# Electron, Tauri 。。。

**URL:** <https://forum.freemdict.com/t/topic/17892>\
**Category:** 软件经验交流展望\
**Created:** [December 12, 2022, 4:42am UTC](https://forum.freemdict.com/t/topic/17892 "2022-12-12T04:42:39Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![surfactant](https://forumcdn.freemdict.com/letter_avatar_proxy/v4/letter/s/dbc845/32.png) [@surfactant](https://forum.freemdict.com/u/surfactant)\
**Post date:** [December 12, 2022, 4:42am UTC](https://forum.freemdict.com/t/topic/17892/1 "2022-12-12T04:42:39Z")

</div>

最近坛友 @大梁客 贡献了 [一个基于 Tauri 的开源词典软件](https://forum.freemdict.com/t/topic/17860)，我就借机了解了下 [Tauri是什么](https://zhuanlan.zhihu.com/p/527553528)。看完就出现一个困惑，既然用js前端框架给桌面应用写界面是个好想法，Electron 和 Tauri 似乎口碑还不错，前者的后端用 node.js 后者则用 Rust，怎么就没有人弄一个后端基于 Python 的东西出来呢？

![Image](https://forumcdn.freemdict.com/uploads/default/original/3X/7/0/706bdf9fe484c530f0ab96e49cd09cca2a41a3a7.png)

参考： [Python Qt 简介](https://www.byhy.net/tut/py/gui/qt_01/)

---

<div class="post-metadata">

**Author:** ![西北风](https://forumcdn.freemdict.com/letter_avatar_proxy/v4/letter/%E8%A5%BF/a9adbd/32.png) [@西北风](https://forum.freemdict.com/u/%E8%A5%BF%E5%8C%97%E9%A3%8E)\
**Post date:** [December 12, 2022, 4:52am UTC](https://forum.freemdict.com/t/topic/17892/2 "2022-12-12T04:52:27Z")

</div>

要不你做一个后端基于word的吧

---

<div class="post-metadata">

**Author:** ![surfactant](https://forumcdn.freemdict.com/letter_avatar_proxy/v4/letter/s/dbc845/32.png) [@surfactant](https://forum.freemdict.com/u/surfactant)\
**Post date:** [December 12, 2022, 5:15am UTC](https://forum.freemdict.com/t/topic/17892/5 "2022-12-12T05:15:28Z")

</div>

> [@last\_idol](#):
>
> Python有Qt了

你的意思是说，Python+PyQt 写桌面应用，并不比 Electron 里面用node.js+前端框架 更麻烦对吗？

> [@last\_idol](#):
>
> Electron出来之前别的语言都很羡慕的

Electron出来之后的成功似乎表明，直接用js前端框架写桌面应用的界面是一个效率和效果都不错的方案

我有这个困惑，是因为前端框架用途广总是要了解的，如果加上 python的基础性内容就够用，那不用费劲去学 PyQt，少学一个大家伙

* * *

@anon69319103 谢谢回复，不过你的回复里的名词多数我都看不懂  
@西北风 抱歉打扰，前段时间把个人简介关闭了没法ignore最近开了

---

<div class="post-metadata">

**Author:** ![surfactant](https://forumcdn.freemdict.com/letter_avatar_proxy/v4/letter/s/dbc845/32.png) [@surfactant](https://forum.freemdict.com/u/surfactant)\
**Post date:** [December 12, 2022, 6:08am UTC](https://forum.freemdict.com/t/topic/17892/8 "2022-12-12T06:08:00Z")

</div>

谈不上熟悉什么，坦率说大多都不熟，对这些东西用的很少，但是一旦要用就得上。所以，基本考虑是选择一个最小的技术栈，一分钱当两分钱花。

如果用 Electron，前端框架的知识就能用上，但就要熟悉通用性不大的 node.js。  
如果用 PyQt，前端框架的知识就用不上，而且还要熟悉容量不算小的 PyQt。  
都是麻烦。

谢谢指教！

---

<div class="post-metadata">

**Author:** ![last\_idol](https://forumcdn.freemdict.com/user_avatar/forum.freemdict.com/last_idol/32/2205_2.png) [@last\_idol](https://forum.freemdict.com/u/last_idol)\
**Post date:** [December 12, 2022, 6:38am UTC](https://forum.freemdict.com/t/topic/17892/9 "2022-12-12T06:38:06Z")

</div>

最小的技术栈，那就全压Electron上吧，熟悉JavaScript就可以了，可以参考：

> **[GitHub - terasum/medict: medict a cross platform dictionary...](https://github.com/terasum/medict)**
>
> medict a cross platform dictionary application,support mdict (\*.mdx/\*.mdd) dictionary format - GitHub - terasum/medict: medict a cross platform dictionary application,support mdict (\*.mdx/\*.mdd) di...

---

<div class="post-metadata">

**Author:** ![surfactant](https://forumcdn.freemdict.com/letter_avatar_proxy/v4/letter/s/dbc845/32.png) [@surfactant](https://forum.freemdict.com/u/surfactant)\
**Post date:** [December 12, 2022, 7:52am UTC](https://forum.freemdict.com/t/topic/17892/10 "2022-12-12T07:52:47Z")

</div>

> [@last\_idol](#):
>
> 就全压Electron上吧，熟悉JavaScript就可以了

谢谢！曾经这么想过用 node.js代替 python，被几位坛友泼凉水后感觉不是很好的办法，在通用性方面 node.js 比 python 恐怕还是差太多，所以就放弃了。

真是孤陋寡闻，居然不知道[坛子里曾经有 meditct 这个项目](https://forum.freemdict.com/t/topic/6985/303)。可惜后续没有人跟进，我猜如果是 python 写的，参与的人可能会有些吧。

---

<div class="post-metadata">

**Author:** ![surfactant](https://forumcdn.freemdict.com/letter_avatar_proxy/v4/letter/s/dbc845/32.png) [@surfactant](https://forum.freemdict.com/u/surfactant)\
**Post date:** [December 12, 2022, 4:39pm UTC](https://forum.freemdict.com/t/topic/17892/12 "2022-12-12T16:39:24Z")

</div>

还是算了，老老实实回到WPF，python还是做它的老本行脚本该做的事，点到为止。谢谢！
