Advanced

Quick and dirty linux GUI programming

Posted by j00p34 on · 3 comments
HandleWithLinux.com; By Kaikokan
Mail this story
Print this story

So I thought of a reasonably trivial program I could write which would still be interesting enough and which can be build upon for a while to build some skill in perl GUI programming. I think it would be nice to be able to build a GUI for linux command line programs, that could have some value in the future. As that could quickly become to complex for my purpose and it would probably drive me to start messing with the code for the utility I want to write a GUI for, I chose instead to start writing a GUI for native built in shell commands.

Full Story

  Nav
» Read more about: Story Type: Tutorial; Groups: Community, GNOME, GNU, Linux

» Get new stories by e-mail: nightly or as they are published

« Return to the newswire homepage

  Related stories
» More like this

Comments (3)

I hardly use GTK directly anymore. 99% I do in libglade, where the UI comes from an XML file. Much easier and more flexible. There's also the Glade UI builder that will create the XML files for you. Making GUI apps with libglade is much, much quicker than doing it by hand with GTK calls.
I'm not an expert, but is there a general trend to higher-level platforms? I suppose glade is higher level than GTK, and today there's GWT, XUL and lots of other stuff.
I'm not sure if it really qualifies as higher level. On the one hand yes, because libglade does 99% of what use to be manual GTK coding. On the other hand not. The XML structure of glade is much more similar to the in-memory object representation of the GUI. I think it's on the same level, really.

You can compare it with DOM XML I suppose. You can create a DOM tree manually by calling all kinds of addNode(), setAttribute() and appendChild() calls, or you can parse an XML file with a single function call. In both cases you end up with the same with: The in-memory DOM. But the second method is much easier than the first.

I am really, really surprised KDE still does not have this.

Post a comment

A free account is needed to post. Write your comment here first: your text is kept in this browser while you sign up or log in, and is waiting for you when you come back.

Your message:
|||||
10
Markdown: **bold**, *italic*, [text](https://link), - lists, > quotes, $x^2$ for math. Formatting help

Sign up and post (it is free)  or  Log in and post