Python: Desktop UI for my python script
Im new to python and want to create a GUI front-end (desktop, rather than web) for my python script. The script essentially parses XML files and runs various searches over the contents (eg. accepts regex searches from the user, returns results etc).
It works well on the command开发者_运维技巧 line but I want to present a more user friendly interface. There seems to be a lot of options out there - http://docs.python.org/faq/gui.html Or should I look elsewhere? Can someone recommend a GUI toolkit for Python? Cheers.I recommend using one of Tkinter, wxPython or PyQt. They are all equally suitable for a simple task. My personal favorite is Tkinter because I think it is the simplest way to get started. However, any of those would make a fine choice.
Here is a page on the Python wiki with some fifty options.
PyQt is great, although it's on GPL
. There is also PySide alternative on LGPL
.
You can also try wxPython or PyGTK if you don't like Qt
for some reason. There is also gui library in python standard library called Tkinter, but I haven't used it and don't have any experience with it.
精彩评论