Page 1 of 1

Easy to use GUI creation for Raspberry Pi programs?

Posted: Sat Jun 15, 2024 4:56 am
by abishur
Randomish question here. I wrote a fairly basic program for an ESP32 using arduino that handles button presses for a little quiz thing. First person to hit the buzzer, it lights up and stores whoever hit first on the opposing team if the first person gets the question wrong stuff like that.

Currently I serve up the data from the ESP32 to an HMI (ignition) and let that program do all the heavy lifting of keeping score, grabbing questions from a sqlite database, etc. It's really good, but ignition maker's edition is only for person use and if I want to let my friends use it there's a lot they'd have to do to get it set up.

The nice thing about Ignition though, is it is a graphic ide that lets me design my screens like I was using photo editing software and assign event scripts to object on the screen (i.e. you press the button, it does all this code).

Is there something similar I could use on the Raspberry Pi that would let me use the built in GPIO to handle interrupts and talk to a shift register to handle lighting up the LED and let me build it in a graphical environment? I thought about going down the .net route, but it's cross-platform promises are a bit iffy from what I read. Tkinter looks promising, but I'd have to do all my window design in my head and my visualization isn't all that great, lol.

Any thoughts on things you've used and liked?

Re: Easy to use GUI creation for Raspberry Pi programs?

Posted: Sat Jun 15, 2024 8:07 am
by bambinka
Check out Lazarus/Free Pascal

Re: Easy to use GUI creation for Raspberry Pi programs?

Posted: Sat Jun 15, 2024 10:15 am
by drankinatty
There is no Point-n-Click GUI creation I know of that will associate events and let you tell it how you want things displayed by clicking a properties box and fiddling with attributes. There may be something like that someone has written, but I haven't run across it in a decade of Pi. The traditional GUI toolkits are not that bad to work with. You have your desktop toolkits Qt, Gtk, and your desktop agnostic types, e.g. wxwidgets and the like. If you are taking inputs from a handful of buttons, it wouldn't be too hard to pick one of the toolkits and just go from there.

All those mentioned, Qt, Gtk, WxWidgets, all have good tutorials you can work through in an hour or so.

Your other option is a web-application where you simply provide the data and then use the webby type tools (PHP, FontAwesome, and a bit of JS) to make the pages do anything you can dream up. Starting from scratch, those have a shallower learning curve.

On the other hand, if you are comfortable with C/C++, then adding a graphic front-end isn't that bad either, the only downside is if you have little experience working in those languages, it is a fairly long road from "Hello world" to making a Gui application. Where I to do it, I'd go the toolkit route, learn it once, it there for any project you have from here-on-out.

Sorry I know of no Silver-Bullet, but hopefully others can chime in. And then there is Python, I'm sure it has rudimentary graphic capabilities as well, but if I recall, it is generally from Qt or Gtk bindings.

Re: Easy to use GUI creation for Raspberry Pi programs?

Posted: Sat Jun 15, 2024 10:48 am
by Paul Hutch
The closest thing to an easy point and click GUI design tool is Qt Designer.
https://doc.qt.io/qt-6/qtdesigner-manual.html

I use it to design the GUI for my PyQt based apps.

Re: Easy to use GUI creation for Raspberry Pi programs?

Posted: Sat Jun 15, 2024 1:04 pm
by NotRequired
You could also look at Lazarus IDE (FreePascal), which works well on RasPi.

Re: Easy to use GUI creation for Raspberry Pi programs?

Posted: Mon Jun 17, 2024 3:18 pm
by abishur
Thanks, I'll check those out!

Re: Easy to use GUI creation for Raspberry Pi programs?

Posted: Fri Nov 15, 2024 2:55 pm
by andreamancuso
Hi,
It's a still work in progress, but I am looking to fill this niche with https://github.com/andreamancuso/xframes
You would need to learn JavaScript or TypeScript, Node.js, React (no DOM, no CSS required). But you do get GPU-accelerated GUI development out of the box. I'd be happy to find out more about your requirements.

Cheers,
Andrea

Re: Easy to use GUI creation for Raspberry Pi programs?

Posted: Fri Nov 15, 2024 9:14 pm
by swampdog
There's also Qt Creator which is a multi-platform development IDE (with Qt Designer buried within it). Frankly it's a bit of a pain to get "kits" configured and I currently only use it for console apps - though I do have kits configured to build using gcc/clang ninja/make and a kit for pico cross compiler. I have it use cmake projects for that stuff which means you can cobble together a script which will build the project from the command line without qtcreator.

The GUI side has lots of options. All I've ever done is try some examples. Basically if you've ever used Delphi/C++Builder it can be akin to that. Use the "designer" component to design (say) a form then click on the object to see its methods. Click on those and the IDE will create a wrapper. Alternatively you can code things from scratch. Probably the best way to evaluate it is to install qtcreator plus "examples" on some box and just go through them. Make darned sure the "examples" tab/item isn't empty in qtcreator or you'll give up on it. Many distros don't install the examples.

In an ironic quirk I've been building QT since forever but never had the time to learn how to use it. My desktop PC and my bookworm rpi are using QT 6.7.2 and QtCreator 14.0.1 but I'm sure the stock version will suffice. It's usable on a 4Gb rpi4. Takes a while to launch but usable thereafter (test rpi4 only has sdcard and a tmpfs /tmp/).

I do plan to release my "sideloaded" QT. I'm side-tracked with cross-compilers lately. I'll get back to it though.

Re: Easy to use GUI creation for Raspberry Pi programs?

Posted: Mon Dec 16, 2024 4:57 am
by h12616
Did you look at Squareline Studio? it seems to be the easiest to use and support LVGL very well.
Let me know what you think.

Re: Easy to use GUI creation for Raspberry Pi programs?

Posted: Mon Dec 16, 2024 7:30 am
by jalih
I wrote a simple tile user interface library for 8th programming language. It uses Nuklear GUI and makes building dashboard style GUI and Pub/Sub clients really easy.

Re: Easy to use GUI creation for Raspberry Pi programs?

Posted: Sat Dec 21, 2024 7:31 pm
by deepo
I've used Python and PySimpleGUI on the RPi.

Re: Easy to use GUI creation for Raspberry Pi programs?

Posted: Mon Mar 10, 2025 4:52 pm
by Vasian
If you like the basic language, you might want to take a look at PureBasic or FreeBasic. Here is his manual. I've recently started looking into it and it looks interesting and promising. Creating GUI - window and controls.
Installing basic on Raspberry PI OS https://www.youtube.com/watch?v=qCBxlhkINSA

Re: Easy to use GUI creation for Raspberry Pi programs?

Posted: Tue Mar 18, 2025 12:08 am
by RaspyHat
I currently use Glade on my RPi5

Re: Easy to use GUI creation for Raspberry Pi programs?

Posted: Tue Apr 29, 2025 9:37 pm
by raweggeater
Does ncurses work on Raspberry Pi? I dabble with that on Linux a few years ago.

Re: Easy to use GUI creation for Raspberry Pi programs?

Posted: Tue Apr 29, 2025 9:40 pm
by raweggeater
Oh nevermind. ncurses only works with C and not Python.

Re: Easy to use GUI creation for Raspberry Pi programs?

Posted: Tue Apr 29, 2025 10:14 pm
by DougieLawson
raweggeater wrote:
Tue Apr 29, 2025 9:40 pm
Oh nevermind. ncurses only works with C and not Python.
That's not true.
https://docs.python.org/3/howto/curses.html

Re: Easy to use GUI creation for Raspberry Pi programs?

Posted: Mon May 26, 2025 10:56 am
by Tim99
I've been using the latest Pi version of the Object Oriented Basic program Xojo. The Pi version is free for console and GUI apps, and runs on Pi 3 and later - I'm using a Pi5. Paid versions allow distribution to Mac, Windows, Linux, iOS, Android, and the web.
https://xojo.com/raspberrypi/

My stuff usually talks to SQLite databases. I have found few problems.

AltStyle によって変換されたページ (->オリジナル) /