LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 11-15-2007, 02:17 AM   #1
binarybob0001
Member
 
Registered: Dec 2004
Distribution: Debian Wheezy
Posts: 444

Rep: Reputation: 30
Want to Create a Simple X Application


I'm coming from a Windows programming background where there was on simple win32 api. In linux things seem to be different. What do you use to design simple gui applications?
 
Old 11-15-2007, 02:34 AM   #2
gnashley
Amigo developer
 
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,928

Rep: Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612
You need to use the libraries from one of the gui widget toolkits, such as qt (like what KDE apps use), GTK or gnome.
 
Old 11-15-2007, 02:37 AM   #3
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
Personally, I'd use Java for my application and hence would be writing the GUI in Swing.
 
Old 11-15-2007, 02:43 AM   #4
binarybob0001
Member
 
Registered: Dec 2004
Distribution: Debian Wheezy
Posts: 444

Original Poster
Rep: Reputation: 30
Is there a basic API that the qt, gtk and gnome libraries are build on?
 
Old 11-15-2007, 02:49 AM   #5
bigearsbilly
Senior Member
 
Registered: Mar 2004
Location: england
Distribution: Mint, Armbian, NetBSD, Puppy, Raspbian
Posts: 3,515

Rep: Reputation: 239Reputation: 239Reputation: 239
Unfortunately/luckily (delete applicable) there are loads of toolkits to choose from,

I take it you want C/C++ ?

this is nice and simple with a GUI designer.
http://www.fltk.org/
and you get lots of nice example programs.

you can't getter simpler than TCL/TK though,
try cut and paste this into an xterm...

Code:
$ wish
pack [button .b -text {hello there} -command exit]
also Perl/tk
 
Old 11-15-2007, 04:37 AM   #6
Pearlseattle
Member
 
Registered: Aug 2007
Location: Zurich, Switzerland
Distribution: Gentoo
Posts: 999

Rep: Reputation: 142Reputation: 142
I'm using QT in combination with Eclipse.
 
Old 11-15-2007, 11:49 AM   #7
rogx
LQ Newbie
 
Registered: Jan 2005
Location: Roma, Italy
Distribution: slackware, slamd64
Posts: 23

Rep: Reputation: 15
binarybob0001:
Quote:
Is there a basic API that the qt, gtk and gnome libraries are build on?
Yes, in a *NIX environment the graphics toolkits are based on X APIs

Fltk, as example, it is really multi-platform. This means that if You are in windows, it uses the windows kernel APIs,
if You are in Linux or other *NIX, it uses the X APIs.
Fltk can use also OpenGL, if You have it installed, both in windows and *NIX.

Rogx.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Simple Linux tv/television application? fyoder Linux - Software 5 11-05-2007 09:29 PM
How can I make that simple application by c Buggaya Programming 12 06-10-2006 08:39 PM
Simple Questions Regarding Application Installations e11 Linux - Newbie 6 10-29-2004 09:33 PM
Writing a simple KDE application yapp Programming 1 12-10-2003 03:39 PM
Simple Streaming Video application? Digiital Linux - Software 3 06-14-2002 09:10 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 09:34 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