【问题标题】:Develop a graphical interface for Python applications为 Python 应用程序开发图形界面
【发布时间】:2020-05-05 17:19:29
【问题描述】:

我正在开发一个 python 应用程序。 此应用程序最终生成一个 .xlsx 类型的表

为了进入决赛桌,我使用了 Anaconda 的 jupyter。

我想为 python 应用程序创建一个图形界面。但是,我对这个主题有一些理论上的怀疑:

因为,我想进入表格并向用户显示统计结果(根据用户应用的过滤器)。什么是最合适的方法?

      Option A) Use an interpreter, such as TkInter? Are these interpreters capable of
                generating an executable? Is it able to receive a data entry table?

      Option B) Use a web framework, such as Django. Does this framwork host the built page?
                 It is capable of receiving a data entry table.

我愿意接受更多选择。谢谢。

【问题讨论】:

  • 我建议你使用 Tkinter。您可以使用pyinstaller将py文件转换为exe
  • 另外,我见过有人像你用 tkinter 做的那样做桌子。
  • 感谢您的建议。我还有一个问题:在 Anaconda 环境中开发的代码是 ipynb 类型的,这会生成一个 xlsx 类型的文件。您知道开发过程是什么:输入 1) 我将数据表作为输入发送并创建字段,以便用户可以过滤他们想要的特征。类型 2) 将我的代码 (ipynb) 转换为可执行文件?
  • 我不是你想要做什么的专家!我自己刚开始,我只是建议了我正在使用的这种技术,其他人也是如此。
  • 好的。感谢您的评论。

标签: python django user-interface tkinter


【解决方案1】:

tk 更适合分布式桌面应用程序。可以打包分发。

另一个选择是一个很酷的包,叫做 Eel,有点像 python 的电子。您可以使用 html、css、js 以及最重要的 python 构建桌面应用程序:https://github.com/samuelhwilliams/Eel

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2011-09-06
    • 1970-01-01
    • 2014-03-02
    • 1970-01-01
    • 2012-02-09
    相关资源
    最近更新 更多