Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to program a graphical/windows-like app for linux...

Status
Not open for further replies.

2016nc

Programmer
Jun 3, 2002
31
US
Hi guys, I am familiar at a novice level with with making a minimum bloat (haha) Windows98 app, but what is the equivalent for linux? I don't even really know what it is called; is it xwindows programming? I just want to make a graphical interface for an existing linux app. I would like to know both bloated (pre-made end-all-be-all libraries) and non-bloated methods of achieving this. I would apreciate any pointers and resources y'all could offer.
 
Try Glade, however, it's based on C++ programming, probably Perl and Python too, not sure.

If you cannot find Glade on your linux machine, it should be in your linux dist. cds or go to
 
I've been meaning to get in to Linux GUI programming myself, but there just never seems to be time. At any rate, here's what I know:
The no-bloat way is to use the X libraries directly. Don't do this. X is extremely low level (i.e. it supports things like drawing lines and points, but that's about it), and unless you have a compelling need for it, it's just way too much work.
The bloaty way is to use a GUI toolkit that wraps up Xlib into a nice, usable package. The most popular are Qt (which is used by KDE) and GTK (which is used by GNOME). Qt is object oriented and focused on C++. GTK is C based, but has bindings to just about any language you can think of. Glade is actually a GUI builder for GTK programs. It has binding for C, C++, Perl, Eiffel, and Ada95, if I recall correctly. I've played with it a little, and it seems pretty nice.
From what I've heard, Qt may actually be the better toolkit, but GTK has more community support.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top