ch1kn
Posts: 1
Joined: Sun Jul 21, 2019 6:45 pm

I need help writing GUIs directly using Raspbian.

Sun Jul 21, 2019 6:49 pm

I'm not one for Python, i much prefer C. How could i write a GUI application using the OSes GUI API. (I am assuming Raspbian has one, maybe not though.) I cant find any resources on anything like this.

User avatar
Paeryn
Posts: 2609
Joined: Wed Nov 23, 2011 1:10 am
Location: Sheffield, England

Re: I need help writing GUIs directly using Raspbian.

Mon Jul 22, 2019 2:17 am

ch1kn wrote:
Sun Jul 21, 2019 6:49 pm
I'm not one for Python, i much prefer C. How could i write a GUI application using the OSes GUI API. (I am assuming Raspbian has one, maybe not though.) I cant find any resources on anything like this.
Raspbian (like most Linux distros) uses X11 though you're better off using a GUI toolkit rather than working with X11 itself.

Common toolkits are Qt, GTK, Tcl/Tk (Tkinter is python's wrapper around this).

Raspberry Pi Press have a book about programming GUIs in C (using GTK), see this page where you can buy a hard-copy or download a PDF of it for free.
She who travels light — forgot something.

Return to “Advanced users”