简体   繁体   English

Python GUI应用程序工具?

[英]Python gui application tools?

What tools should be used to create GUI app in python? 应该使用哪些工具在python中创建GUI应用程序? I imagine something similar to WinForms or WPF. 我想象类似于WinForms或WPF的东西。 It would be best if there were tools to design app visually. 最好有视觉设计应用程序的工具。 I think something similar to Java FX/Swing will do, too. 我认为类似Java FX / Swing的方法也可以。

I tried tkinter framework, but it was impossible to use, it's very different from WinForms for example. 我尝试了tkinter框架,但无法使用,例如,它与WinForms有很大不同。 In my app I will need canvas or something to draw few figures. 在我的应用中,我将需要画布或一些东西来绘制一些数字。

There are many GUI libraries. 有许多GUI库。

  1. PyQt is a cross-platform application framework. PyQt是一个跨平台的应用程序框架。
  2. wxPython wxPython
  3. PyGTK PyGTK
  4. kivy is available on Ardroid. kivy可以用Ardroid。

I think PyQt could help you. 我认为PyQt可以为您提供帮助。 It has GraphicsView class and you can draw something using it. 它具有GraphicsView类,您可以使用它绘制一些东西。

I would recommend wxPython and wxGlade. 我会推荐wxPython和wxGlade。 The later includes a tutorial that should get you started with wxPython as well. 稍后包括一个教程,它也应该使您开始使用wxPython。

Depending on the type of drawing, matplotlib might be an option. 根据工程图的类型,可以选择使用matplotlib。 wxGlade includes examples for this. wxGlade为此提供了示例。 Otherwise have a look at the link posted by wich or at the wxPython demo, whether the drawing capabilities match your requirements. 否则,请查看wich张贴的链接或wxPython演示,无论绘图功能是否符合您的要求。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM