You need to research the MVC (model, view, controller) pattern. Using  
that programing pattern is going to help you write code that can use  
the exact same bacground logic yet still use the native display  
language. e.g. Qt for KDE, gtk for Gnome, or good ol text for the  
terminal.

It's tough to wrap your head around it at first, but once you've got  
it you won't want to program any other way.

Happy coding!




---
Joe Wollard

On Sep 22, 2009, at 12:05 AM, Dos-Man 64 <[email protected]> wrote:

>
> I'm just finishing up my first utility that shows the amount of memory
> and the amount of free memory.  It's a terminal app.  I'm wondering if
> it can also be a GUI app or is it common to create 2 different
> versions?   From a programming perspective, I'm not sure how to tell
> if the application is executing in a shell session or not...
> >

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Linux Users Group.
To post a message, send email to [email protected]
To unsubscribe, send email to [email protected]
For more options, visit our group at 
http://groups.google.com/group/linuxusersgroup
-~----------~----~----~----~------~----~------~--~---

Reply via email to