Results 1 to 6 of 6

Thread: how to create useful && powerful user interface to bash program

  1. #1
    Join Date
    Feb 2013
    Beans
    2

    how to create useful && powerful user interface to bash program

    Hi all
    sorry for spam !
    i wanna create user interface to my programs (coded with bash )
    any body have intrest to design programs plz contact me with private message
    this is good project to developing back track
    i worked with this languages (c,c++,bash)
    we can to form a cohesive team in developing linux
    tnx for help

  2. #2
    Join Date
    Oct 2012
    Beans
    47
    Distro
    Ubuntu Gnome 13.10 Saucy Salamander

    Re: how to create useful && powerful user interface to bash program

    Bash is a scripting language is it not? From my knowledge I don't really see how you would create a user interface for it. Do you want an interface to create bash scripts? I can't see the use of that myself.

  3. #3
    Join Date
    Feb 2013
    Beans
    2

    Re: how to create useful && powerful user interface to bash program

    yeah is it true bash is scripting language but i wanna creat user interface with zenity and other gui maker tools but >> not have not enough option four this programs .

  4. #4
    Join Date
    May 2008
    Location
    UK
    Beans
    1,451
    Distro
    Ubuntu 8.04 Hardy Heron

    Re: how to create useful && powerful user interface to bash program

    Quote Originally Posted by behnamvanda View Post
    yeah is it true bash is scripting language but i wanna creat user interface with zenity and other gui maker tools but >> not have not enough option four this programs .
    There is a rule that says - pick the right tools for the job.

    So if you are trying to create an application which needs a rich feature-full GUI - use a programming language that can support that set of features - i.e. one that has libraries which support GTK or Tinker etc (such as python or C or C++ or Java).

    If you have a bash script which needs some GUI features (progress bars, simple dialogs) - use zenity - if it needs full GUI features such as menu's, toolbars, multiple elements on a single window, multiple windows, drag and drop etc etc - re-write it in a langauge (as above) which has support for those features, as the chances are your bash script is probably so complex it probably should be written in a language which is better suited to complex applications.

    Consider this - after all of this time Bash doesn't support full-featured GUIs - I would wager that it is because there is no real need for it do so.

    If you already know bash and can get your head around all the escape chearacters and specials to access variables etc, then higher level scripting languages like python could well be fairly easy for you.
    Tony - Happy to try to help.
    Unless otherwise stated - all code posted by me is untested. Remember to Mark the Thread as Solved.
    Ubuntu user number # 24044 Projects : TimeWarp - on the fly Backups

  5. #5
    Join Date
    Oct 2011
    Location
    ZZ9 Plural Z Alpha
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: how to create useful && powerful user interface to bash program

    Zenity is limited. If you want a GUI use Python (PyGTK or PyQT) or some similar, better suited language.
    In addition, please write clearly and without using txtspeak. It's hard to take a post seriously when it's poorly written.

  6. #6
    Join Date
    Oct 2005
    Location
    /root
    Beans
    Hidden!
    Distro
    Ubuntu 16.04 Xenial Xerus

    Re: how to create useful && powerful user interface to bash program

    Depending on your requirements, you could give YAD (Yet Another Dialog) a shot. It's "zenity on steroids." I use it to create a graphical front-end for my timer scripts. Here's an example that uses tabs and forms:



    Y-PPA Manager also use it.
    Last edited by Pinoy Tux; March 14th, 2013 at 08:57 AM. Reason: Post cleanup.
    Give a man a ghoti, and he'll eat for a day. Teach him how to ghoti, and he'll eat for life.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •