开发者

Graphical Front-end for Python script [closed]

开发者 https://www.devze.com 2023-02-28 18:44 出处:网络
Closed. This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this
Closed. This question needs to be more focused. It is not currently accepting answers.

Want to improve this question? Update the question so it focuses on one problem only by editing this post.

Closed 7 years ago.

Improve this question

I wrote a python script here Github

It is just something I wrote to p开发者_如何学编程ractice. The script asks for a input directory and output directory and the method of compression and then compress the files from input directory and stores the compressed archive to the output directory.

I want to make a graphical frontend for this script. I am using Ubuntu 10.10 (GNOME). Is it possible to do so? If yes, then where should I start?

I want to do this just for learning purposes.

Thanks


It's certainly possible. There are a ton of GUI frameworks available so you'll have more then enough choices. Given your OS is Ubuntu I would look into PyGTK first. I personally found PyGTK fit my brain pretty well and I really liked the documentation. The fact that it's the native toolkit for your Window Manager is a nice plus in that your app will hopefully look like the other Gnome apps you're already running.

Of course you could use Tkinter which is bundled with Python and cross platform. Or you could look into using PyQT or wxPython.

To be a little crazy, since this is a learning exercise, you might want to use something lower level so you might look into something like Pyglet or Pygame and spend some time learning how to build your UI widgets.

If you're looking for touch interface or iOS / Android support then checkout Kivy

Good luck.


Kivy also looks like a good alternative.

Kivy - Open source Python library for rapid development of applications that make use of innovative user interfaces, such as multi-touch apps.


I found PyQt pretty easy to get up and running with. Check out the wiki docs here.


I find MVC a very good design pattern to use in this case, so, you might try to salvage your code (it seems very simple).

For a GUI framework, I suggest Mike Steder's response, and this list and a large list found here.

0

精彩评论

暂无评论...
验证码 换一张
取 消