在 Python 中开发简单 GUI 的最简单方法

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/4293889/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-18 15:06:42  来源:igfitidea点击:

Easiest way to develop simple GUI in Python

pythonuser-interface

提问by csguy11

I'm done with my class project which I coded using Python. I'm working on the extra credit part i.e. GUI development - Windows platform.

我已经完成了我使用 Python 编码的课程项目。我正在研究额外的信用部分,即 GUI 开发 - Windows 平台。

I need something simple, easy to use, possibly drag-and-drop GUI development tool for Python. GUI needs to look somewhat like google, since all my project does is:

我需要一些简单易用的 Python 拖放式 GUI 开发工具。GUI 需要看起来有点像 google,因为我的项目所做的就是:

input: Company name
output: Ethical or Unethical

So, all I need is:

所以,我需要的是:

  • An attractive image
  • Input textbox
  • Search button
  • Output box
  • 诱人的画面
  • 输入文本框
  • 搜索按钮
  • 输出框

采纳答案by user225312

Take your pick here.

在这里挑选。

Tkinteris in the Python stdlib.

Tkinter在 Python 标准库中。

回答by Ignacio Vazquez-Abrams

回答by Mariy

Tkinter is simple but is too ugly. PyQT can do everything you want but is too big. Perhaps IronPython will be good for you. Take a look at this: Python guis

Tkinter 很简单,但是太丑了。PyQT 可以做你想做的一切,但它太大了。也许 IronPython 对你有好处。看看这个:Python guis

回答by Vladislav Reshetnyak

EasyGUIfor very easy GUI Development

EasyGUI用于非常简单的 GUI 开发

回答by Risto Salminen

I prefer PyQTalthough it is pretty big. It has all the features that normal QT has, and that's why it's very usable. I think you can use QMLwith it too.

我更喜欢PyQT,虽然它很大。它具有普通 QT 的所有功能,这就是它非常有用的原因。我认为你也可以使用QML

回答by piertoni

Try with Kivy! kivy.orgIt's quite easy, multi platform and a really good documentation

试试 Kivy!kivy.org非常简单,多平台和非常好的文档

回答by TMoover

I would recommend wxpython. It's very easy to use and the documentation is pretty good.

我会推荐 wxpython。它非常易于使用并且文档非常好。