Find the answer to your Linux question:
Results 1 to 3 of 3
Hello, I have written some scripts that query the user and waits for keyboard input for an answer. I was wondering if there is any generic code snippets out there ...
  1. #1
    Just Joined!
    Join Date
    Jan 2007
    Posts
    19

    gui text box code snippet?

    Hello,

    I have written some scripts that query the user and waits for keyboard input for an answer. I was wondering if there is any generic code snippets out there that would allow me to run this as a GUI. I am thinking of a simple dialogue box that would display the question and have a text entry field.

    I would like to hear of any and all options or ideas on this. I am open to writing the programs in Perl, or C if that is what it takes to implement this.

    Thank you,

  2. #2
    Linux Engineer GNU-Fan's Avatar
    Join Date
    Mar 2008
    Posts
    935
    Hello,

    I am not sure what you mean by "generic code snippeds" but if you just want to have some dialog boxes that control the behavior of your shell scripts, I recommend Tcl/Tk.

    GUI Scripting with Tcl/Tk

    Also, make sure you are aware of the capabilities of the 'dialog' program coming preinstalled on many GNU/Linux systems. If you happen to run GTK you will also want to learn about gdialog (now called zenity).

  3. #3
    Just Joined!
    Join Date
    Jan 2007
    Posts
    19
    what I meant by "generic code snippets" was some canned code that I could adapt without having to write the whole thing from scratch. I may be misusing the terms here, but that is what I meant.

    I truly appreciate the link, and I am looking into it.

    Thank you.

    Allasso

Posting Permissions

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