LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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, 02: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, 02:56 PM   #2
pljvaldez
LQ Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Rep: Reputation: 281Reputation: 281Reputation: 281
If you want a console "gui", I'd look at using ncurses.
 
Old 01-17-2011, 03: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, 03:39 PM   #4
wpeckham
LQ Guru
 
Registered: Apr 2010
Location: Continental USA
Distribution: Debian, Ubuntu, RedHat, DSL, Puppy, CentOS, Knoppix, Mint-DE, Sparky, VSIDO, tinycore, Q4OS,Manjaro
Posts: 5,623

Rep: Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695
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, 03: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,233

Rep: Reputation: 406Reputation: 406Reputation: 406Reputation: 406Reputation: 406
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 03:43 PM.
 
Old 01-17-2011, 05:50 PM   #6
schneidz
LQ Guru
 
Registered: May 2005
Location: boston, usa
Distribution: fedora-35
Posts: 5,313

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


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

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:32 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
Open Source Consulting | Domain Registration