shauzi158
Posts: 1
Joined: Tue Mar 18, 2014 7:30 pm

developing GUI applications on pi

Tue Mar 18, 2014 7:33 pm

hey there. i am new on raspberry and i wanted to know if I could make some graphical python applications in PI. if yes, please state how or give links.

User avatar
stevepdp
Posts: 285
Joined: Fri Oct 28, 2011 7:41 am

Re: developing GUI applications on pi

Tue Mar 18, 2014 8:05 pm

My understanding is that Python has bindings for a handful popular toolkits, the most notable being GTK, QT and TK.

QT has Python bindings provided by the package "python3-pyside". It's documented in Learning Python With Raspberry Pi and here.

A friend recently mentioned PyGObject to me as a ways of building GTK applications in Python. That's covered here.

I'm just getting started on GUIs myself so I couldn't tell you which toolkits to go for or reasons why to pick one toolkit over another. Hopefully somebody with more experience will chime in...

Hope this info at least gets you started.

toxibunny
Posts: 1382
Joined: Thu Aug 18, 2011 9:21 pm

Re: developing GUI applications on pi

Wed Mar 19, 2014 12:43 am

If what you want to do is not too complex, and/or you're relatively new to programming, then it might be better to just use pygame. It's a lot more pleasant to get to grips with than qt, to put it mildly...
note: I may or may not know what I'm talking about...

User avatar
DeeJay
Posts: 2027
Joined: Tue Jan 01, 2013 9:33 pm
Location: East Midlands, UK

Re: developing GUI applications on pi

Wed Mar 19, 2014 8:04 am

In agreement with what toxibunny said. You can see a load of examples of using pygame by following the 'Python Games' icon on the 'Big Raspberry' desktop.
How To Ask Questions The Smart Way: http://www.catb.org/~esr/faqs/smart-questions.html
How to Report Bugs Effectively: http://www.chiark.greenend.org.uk/~sgtatham/bugs.html

KenT
Posts: 758
Joined: Tue Jan 24, 2012 9:30 am
Location: Hertfordshire, UK
Contact: Website

Re: developing GUI applications on pi

Wed Mar 19, 2014 8:09 am

If you want a windows, menus dialog box type gui then Tkinter is a good starting place. It is said to be a little dated and obscelecent but perfectly adequate for simple projects. It has python bindings, is ready installed in Pi and has good documentation at http://effbot.org/tkinterbook/tkinter-index.htm

Idle is written using Tkinter.
Pi Presents - A toolkit to produce multi-media interactive display applications for museums, visitor centres, and more
Download from http://pipresents.wordpress.com

gkreidl
Posts: 6093
Joined: Thu Jan 26, 2012 1:07 pm
Location: Germany

Re: developing GUI applications on pi

Wed Mar 19, 2014 10:15 am

KenT wrote:If you want a windows, menus dialog box type gui then Tkinter is a good starting place. It is said to be a little dated and obscelecent but perfectly adequate for simple projects. It has python bindings, is ready installed in Pi and has good documentation at http://effbot.org/tkinterbook/tkinter-index.htm

Idle is written using Tkinter.
And another very good documentation can be found here:
http://infohost.nmt.edu/tcc/help/pubs/t ... index.html
Minimal Kiosk Browser (kweb)
Slim, fast webkit browser with support for audio+video+playlists+youtube+pdf+download
Optional fullscreen kiosk mode and command interface for embedded applications
Includes omxplayerGUI, an X front end for omxplayer

Return to “Python”