User avatar
ejstembler
Posts: 1
Joined: Fri Jan 13, 2017 6:25 pm
Location: Tampa, Florida, USA
Contact: Website

How to write GUI apps for Pixel?

Fri Jan 13, 2017 6:30 pm

Hi there,

I'm new to the Raspberry Pi world, and was wondering what GUI toolkit does Pixel use? For example, if I wanted to write a GUI app to run in Pixel what would I use? Does it use Gtk, tk, Qt, etc...? I want to remain as close to the native preferred libraries as possible. I'll probably be using Python or Ruby if possible.

Thanks!

p.s. I didn't see a Pixel forum, so I posted this here.

User avatar
B.Goode
Posts: 10356
Joined: Mon Sep 01, 2014 4:03 pm
Location: UK

Re: How to write GUI apps for Pixel?

Fri Jan 13, 2017 7:43 pm

Welcome to the forums.

PIXEL is simply the working name for the desktop environment designed by the Raspberry Pi Foundation for the Raspbian Operating System. So the Raspbian forum will do fine.

There are masses of GUI app tools: probably several for each language you might want to implement in.

One recent, still under development, example is the guizero python library: https://lawsie.github.io/guizero/about/

peterlite
Posts: 720
Joined: Sun Apr 17, 2016 4:00 am

Re: How to write GUI apps for Pixel?

Fri Jan 13, 2017 11:08 pm

Google Magpi. Look through the free magazine and books for examples of projects of interest to you. Almost all the general purpose programming examples are Python. You can see how they handle GUI.

After that, you only need Raspberry Pi examples for things like the GPIO pins. Raspbian is built on the same Debian Jessie as Ubuntu 16. You can find examples from a wide range of sources. A Python based application like Meld should work exactly the same across all Linux distributions based on Debian and using a GUI like Raspbian's LXDE.

User avatar
DougieLawson
Posts: 39304
Joined: Sun Jun 16, 2013 11:19 pm
Location: A small cave in deepest darkest Basingstoke, UK
Contact: Website Twitter

Re: How to write GUI apps for Pixel?

Fri Jan 13, 2017 11:13 pm

Tkinter is an easy one to use. There's a "get started with python & tkinter" article in MagPi issue #29

https://www.raspberrypi.org/magpi-issues/MagPi29.pdf on page # 44.
Note: Any requirement to use a crystal ball or mind reading will result in me ignoring your question.

Criticising any questions is banned on this forum.

Any DMs sent on Twitter will be answered next month.
All non-medical doctors are on my foes list.

rjk
Posts: 1
Joined: Tue Jan 17, 2017 6:51 am

Re: How to write GUI apps for Pixel?

Tue Jan 17, 2017 6:57 am

If I understand your question correctly, the answer you are looking for is Gtk.

See https://www.raspberrypi.org/blog/introducing-pixel/ and make sure you read the comments.

Return to “Raspberry Pi OS”