LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-17-2011, 03:53 PM   #1
twchambers
LQ Newbie
 
Registered: Jun 2010
Posts: 10

Rep: Reputation: 0
Wanting to create GUI's...


Hi there.

I have been using Linux for around a year now, and think I have gotten to grips with shell scripting, mainly bash and csh. Now that I have the hang of these, I wanted to create some reasonably simple gui's to allow more simple modification of variables etc and running of the scripts.
Another example of what I would like to do is create a simple GUI for some of the games that I run for the command line,
i.e. PROGRAM [options] GAME LOCATION
Through this I'd just like to be able to run the program and make it easier to turn on/off options to enhance the running.

My main question is what is the best way to go about creating these GUI's?
What language should I use for them, and should I attempt to learn and write the code from scratch, or would I find it easier to simply find a program to write the code for me depending what things I want in. (Hard to explain but the closest thing I can think is a program that does for a GUI what dreamweaver/frontpage does for HTML code.)

I understand that some of this is maybe personal preference but any suggestions would be greatly appreciated!
Thanks in advance!
 
Old 01-17-2011, 03:56 PM   #2
pljvaldez
LQ Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Rep: Reputation: 271Reputation: 271Reputation: 271
If you want a console "gui", I'd look at using ncurses.
 
Old 01-17-2011, 04:31 PM   #3
jthill
Member
 
Registered: Mar 2010
Distribution: Arch
Posts: 211

Rep: Reputation: 67
And if you want pretty, look at qt4 designer.
 
Old 01-17-2011, 04:39 PM   #4
wpeckham
Senior Member
 
Registered: Apr 2010
Location: USA
Distribution: Debian, Ubuntu, Fedora, RedHat, DSL, Puppy, CentOS, Knoppix, Mint-DE, Sparky, Vsido, tinycore, Q4OS
Posts: 1,657

Rep: Reputation: 580Reputation: 580Reputation: 580Reputation: 580Reputation: 580Reputation: 580
gui

...And if you want all of that while retaining slim and portable, look into TK/TCL.


The gui functions can be called from within PERL scripts. While shell scripts SHOULD also be able to take advantage of TK: I have not seen that done.

Like Perl, tk ports EVERYWHERE. You can even script within it (it is its own language) so that the dependencies remain few and manageable.
 
Old 01-17-2011, 04:39 PM   #5
frieza
Senior Member
 
Registered: Feb 2002
Location: harvard, il
Distribution: Ubuntu 11.4,DD-WRT micro plus ssh,lfs-6.6,Fedora 15,Fedora 16
Posts: 3,200

Rep: Reputation: 397Reputation: 397Reputation: 397Reputation: 397
Quote:
Originally Posted by twchambers View Post
Hi there.

My main question is what is the best way to go about creating these GUI's?
What language should I use for them, and should I attempt to learn and write the code from scratch, or would I find it easier to simply find a program to write the code for me depending what things I want in. (Hard to explain but the closest thing I can think is a program that does for a GUI what dreamweaver/frontpage does for HTML code.)

I understand that some of this is maybe personal preference but any suggestions would be greatly appreciated!
Thanks in advance!
GUIs can be written in various languages (including but not limited to c, c++, python, it is just a matter of having the right library and understanding the syntax of the API (function calls, mostly), depends on what you need

i would recommend coding from scratch whenever possible as WYSIWIG editors like dreamweaver/frontpage have a tendency to add extra unnecessary code that will simply add bloat to the finished product

even shell scripts have the ability to attach a simple gui
example being winetricks

Last edited by frieza; 01-17-2011 at 04:43 PM.
 
Old 01-17-2011, 06:50 PM   #6
schneidz
LQ Guru
 
Registered: May 2005
Location: boston, usa
Distribution: fc-15/ fc-20-live-usb/ aix
Posts: 5,028

Rep: Reputation: 845Reputation: 845Reputation: 845Reputation: 845Reputation: 845Reputation: 845Reputation: 845
not exactly gui but zenity mite get close to what you want.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Wanting to create a small linux back up server mysticpain Linux - Hardware 7 08-18-2004 04:15 PM
Multiple GUI's? LinuxSeeker Linux - General 1 03-18-2004 11:18 AM
GUI's revenger681 Linux - Software 5 02-08-2004 03:42 PM
Gui's fuelinjection Linux - General 14 12-04-2003 11:07 PM
What are the different GUI's for... javaarmy Linux - General 2 09-22-2003 10:31 AM


All times are GMT -5. The time now is 01:05 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration