LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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 05-05-2004, 07:45 PM   #1
infamous41md
Member
 
Registered: Mar 2003
Posts: 804

Rep: Reputation: 30
quickly learn linux GUI


i hear "tcl" this here and "tk" that there and blablawoofwoof... can someone plz guide me to the proper way to construct GUI's on linux(ie good google terms). what exactly is the formal API specification? i'm aware of several cross platform toolkits, im not interested in that atm. i'd like the win32 equivalent in linux plz. thanks. and if there are any outstanding books, like "programming windows" by petzold, tell me those as well.
 
Old 05-05-2004, 08:36 PM   #2
aluser
Member
 
Registered: Mar 2004
Location: Massachusetts
Distribution: Debian
Posts: 557

Rep: Reputation: 43
There is no one way to do it. This is different than in windows.

For full blown applications the two most popular windowing toolkits are gtk and qt. gtk's first language is C, but there are bindings for it for c++ (called gtkmm), perl, python, and probably several others. qt's first language is c++ with some small extensions (you use a special preprocessor). I don't know what other languages you can use with qt.

tcl is a scripting language and tk is a windowing toolkit for it (I think I've got that straight). The results are usually ugly to look at IMO.

If you want some more complications, and I know you do, there is the gnome desktop environment, which uses gtk and provides additional facilities, including a registry-like configuration system and bonobo, which is a component system which I think I've been told is like COM, though I haven't used either . KDE is a competing desktop environment, which provides similar things to what gnome does but uses qt. If a user is running the KDE desktop environment, he can still use gnome applications, and visa versa. Moreover, the user can use neither desktop, just a skinnier window manager, and still run applications from gnome and KDE.

gnome vs. KDE is nearly as religious as vi/vim vs. emacs, and if one is better than the other, it's not by much.

gnome and kde both provide ides and graphical gui builder things, but you by no means have to use them. I recommend vim because it's better than emacs. grin

So, you get to choose one direction and go with it. A C or C++ app in gtk or qt will probably end up looking (and installing) most professional, but for smallish apps development will probably go faster with perl python or tcl.
 
Old 05-05-2004, 09:46 PM   #3
infamous41md
Member
 
Registered: Mar 2003
Posts: 804

Original Poster
Rep: Reputation: 30
yea i use flux, dont touch those bloated up pigs(gnome/kde), and yes vim owns us all. i guess i'll try out gtk and qt then, thanks.
 
Old 05-06-2004, 08:41 AM   #4
cjp
Member
 
Registered: Dec 2003
Location: the Netherlands
Distribution: SuSE 9.0
Posts: 54

Rep: Reputation: 15
If you want to be a real hacker, then you can also try to learn the X window library (libx). This is the core library on which gtk, qt, tk etc. are built. However, libx is an extremely difficult and low-level API, so I wouldn't recommend it. I tried it once years ago because I didn't have gtk and qt on the Red Hat 5.2 system I was running, but I never succeeded in making more than an empty window with a certain color.
 
Old 05-06-2004, 01:33 PM   #5
infamous41md
Member
 
Registered: Mar 2003
Posts: 804

Original Poster
Rep: Reputation: 30
^^That sounds more like my style, i'll check that out as well. After that i imagine i'll really appreciate gtk && qt.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
The best way to learn Linux... asahlot Linux - General 7 10-18-2005 02:14 AM
Isn't Windows 95 or 98 a better GUI solution for old machines than an old Linux GUI lynchmob09 General 10 04-20-2004 01:24 AM
want to learn more about linux nyquist3 Linux - General 8 03-13-2004 10:14 AM
How to learn more about linux? Howloweener Linux - Newbie 9 05-27-2003 01:43 PM
Linux without all the UNIX? Boot to quickly to X and Gnome only? mark_umr Linux - Distributions 8 10-24-2002 06:55 AM

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

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