LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 02-18-2010, 12:57 AM   #1
oz6oh
LQ Newbie
 
Registered: Mar 2009
Location: denmark ballerup
Distribution: 13.04
Posts: 4

Rep: Reputation: 0
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
 
Old 02-18-2010, 01:35 PM   #2
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
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.
 
Old 02-18-2010, 02:28 PM   #3
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
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 )

.....
 
Old 02-25-2010, 03:09 PM   #4
gookank
LQ Newbie
 
Registered: Feb 2010
Location: Tallahassee, FL
Distribution: Gentoo
Posts: 7

Rep: Reputation: 1
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.
 
Old 02-26-2010, 03:38 AM   #5
oz6oh
LQ Newbie
 
Registered: Mar 2009
Location: denmark ballerup
Distribution: 13.04
Posts: 4

Original Poster
Rep: Reputation: 0
ok thanks. i will try glade
oz6oh= ole oz6oh is my amateurcall in denmark
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Debian: Kernel + gcc not accepting graphic card driver sd|| Linux - Kernel 5 10-27-2009 12:18 PM
2d graphic programming in gcc pippet Programming 8 07-09-2004 05:20 AM
EASY! where's gcc...or cc? presidentscroob Linux - Newbie 4 04-14-2004 03:11 AM
output in graphic mode with gcc Rex_chaos Programming 9 05-13-2002 09:56 AM
output in graphic mode with gcc Rex_chaos Linux - General 6 05-12-2002 03:53 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 09:48 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration