LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   how to make easy graphic with gcc in my Ubuntu 9.10 (https://www.linuxquestions.org/questions/linux-general-1/how-to-make-easy-graphic-with-gcc-in-my-ubuntu-9-10-a-789873/)

oz6oh 02-18-2010 12:57 AM

how to make easy graphic with gcc in my Ubuntu 9.10
 
I have made a little easy c program where i can se my leds on the parallelport ./p 0 no leds
./p 8 led 4 lighting
./p 64 led 7 lighting
How can i make a window around my program??

Kindly ole hasselbalch oz6oh as radioamateur
olehasselbalch@gmail.com

www.olehasselbalch.dk homepage

pixellany 02-18-2010 01:35 PM

welcome to LQ!!

first, I recommend that you remove your e-mail address from your post---you are simply inviting a spam attack.

the standard toolkits for graphics programming are qt and gtk. Within these environments, there are utilities such as dialog and zenity for making simple interactive dialogs.

knudfl 02-18-2010 02:28 PM

May be tcl / tk can do a simple GUI ?

Like this "clock" : http://wiki.tcl.tk/12282

( Google .. show 4 leds tcl-tk .. http://wiki.tcl.tk/_/welcome )

.....

gookank 02-25-2010 03:09 PM

I think GTK+ can be a choice for that purpose. You can edit a window in a program called "Glade". Glade creates an xml file for your interface and you can import that structure by one function call. After that you can get/set variables in your structure and you can fill-in callback functions.

oz6oh 02-26-2010 03:38 AM

ok thanks. i will try glade
oz6oh= ole oz6oh is my amateurcall in denmark


All times are GMT -5. The time now is 09:08 AM.