Linux Today: Linux News On Internet Time.

LinuxProgramming: Selecting GTK+ Widgets for a Simple Application

Aug 14, 2000, 12:36 (0 Talkback[s])
(Other stories by Donna S. Martin)

[ Thanks to Kevin Reichard for this link. ]

"Designing a user interface in GTK+ is more than understanding the basic steps presented in the last article. Widgets have to be selected that match the need in your application; layout has to be at least appropriate (but preferably attractive and easy-to-use). And, of course, your code should be easy to read, and thus easy to maintain (which applies to all code, not just GTK+ code)."

"Of these tasks, widget selection is probably the simplest as it just involves an understanding of the task you are solving and knowledge of the widgets that are available. GTK+ has a variety of widgets, ranging from very simple labels to very sophisticated selection widgets. Assuming you have a good understanding of the problem you're solving, gaining knowledge of the GTK+ widget set is probably your next step. There are two basic approaches to gain more knowledge of the GTK+ widget set."

"One approach is to take a "widget tour." The sample program (testgtk), which comes with GTK+, is a good tourist tool. The best way to see what widgets are available is to see what widgets are available, to click their buttons, type things in their text entry fields, etc.) There are also books and websites available which show you lots of the GTK+ widgets."

Complete Story

Related Stories: