Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I'm planning out a Raspberry Pi project, and I want to make it very easy to use. My dad will be using it, and I'd like for it to be usable without having to interact with the terminal. I just want a basic GUI that prompts for values to be input, processes them, and allows my program to act on them. I want the values to be repeatedly used, but easy to change when the conditions change, there's an error, etc. I thought the easiest way to do this would be a light weight Ubuntu app, but I may be wrong. Any suggestions?

share|improve this question
    
Is this going to run on the pi or on Ubuntu? –  Seth May 11 '13 at 22:30
add comment

1 Answer

up vote 4 down vote accepted

You should go for Qt framework (What is Qt?) which offers great and well documented GUI libraries which work across multiple platforms.

For Python there is PyQt (What is PyQt?) which offers python bindings for the Qt framework.

sudo apt-get install python-qt4 pyqt4-dev-tools

To get started, here is a simple "Hello World"-tutorial:

Create a file ~/tmp/helloworld.py:

import sys
from PyQt4.QtGui import *
app = QApplication(sys.argv)
button = QPushButton("Hello World", None)
button.show()
app.exec_()

Run it:

python ~/tmp/helloworld.py

In addition, you can use the Qt Designer IDE which is available in the ubuntu repositories and offers some nice development features for GUIs.

sudo apt-get install qt4-designer 
share|improve this answer
    
This looks nice. Would it be able to be put into an application of sorts? Or at least an executable file to make it very point-and-clickable? –  Hollis Scriber May 11 '13 at 21:58
    
Of course you can compile your code and create an executable for various platforms. I'm doing that with cmake and qt-creator. But that's another question. :) –  vertoe May 11 '13 at 22:00
    
Thanks for your help! –  Hollis Scriber May 11 '13 at 22:08
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.