Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Graphical Front-end for Python script [closed]

Tags:

python

I wrote a python script here Github

It is just something I wrote to practice. 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

like image 669
hsinxh Avatar asked Apr 27 '11 02:04

hsinxh


3 Answers

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.

like image 143
stderr Avatar answered Oct 04 '22 21:10

stderr


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.

like image 44
Saikat Avatar answered Oct 04 '22 22:10

Saikat


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

like image 21
Demian Brecht Avatar answered Oct 04 '22 21:10

Demian Brecht