在 Python 中创建图形用户界面 (GUI)
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/16428064/
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
Creating Graphical User Interface (GUI) in Python
提问by
I work mostly with Matlab but I am little bit familiar with Python as well. I have never created a GUI before, however, I have been suggested to develop a GUI for an important project in Python and not in Matlab.
我主要使用 Matlab,但我也对 Python 有点熟悉。我以前从未创建过 GUI,但是,有人建议我用 Python 而非 Matlab 为重要项目开发 GUI。
Considering this situation, are there any suggestions that you would like to give which could help me create GUI in python in a time period of a month? Also, I would like to know if I can use Python's Spyder IDE and create GUI from that platform?
考虑到这种情况,您有什么建议可以帮助我在一个月的时间内在 python 中创建 GUI 吗?另外,我想知道我是否可以使用 Python 的 Spyder IDE 并从该平台创建 GUI?
回答by Daniel Simpkins
I suggest that you look through this list of Python GUI frameworks and choose one based on the needs you have for your application.
我建议您查看这份 Python GUI 框架列表,并根据您的应用程序需求选择一个。
http://wiki.python.org/moin/GuiProgramming
http://wiki.python.org/moin/GuiProgramming
Different frameworks will help you solve different UI related problems. Keep in mind the platform that your app will be used on, as some frameworks are platform specific. I personally have used WxPythonand TkInter, and they are pretty good for basic interfaces. If you are looking for more advanced graphics then Kivymight be good to look at.
不同的框架将帮助您解决不同的 UI 相关问题。请记住您的应用程序将在哪个平台上使用,因为某些框架是特定于平台的。我个人使用过WxPython和TkInter,它们非常适合基本接口。如果您正在寻找更高级的图形,那么Kivy可能是不错的选择。
回答by Pradeep Pillai
I would definitely vouch for wxpython. It's very good for advanced GUI work.
我肯定会为 wxpython 担保。它非常适合高级 GUI 工作。

