Changes

Jump to: navigation, search

How to Use Zenity

190 bytes added, 12:56, 27 January 2010
no edit summary
To obtain input, think of Zenity as a replacement for the '''read''' command.
You can use '''--entry ''' to prompt the user for input. When the user enters text and clicks the OK button, or presses the <ENTER> key, zenity will return the value of that entered text. To store it into a variable to be used later in the program, you can use command substitution (enough said, since this is being used for an assignment! You figure it out :) ... ).
== Examples ==
[[Image:zenity_info.png|left|400px]]
 
 
 
<u>Prompting User for Input</u>
 
'''zenity --entry --text "Please enter your full name"'''
 
Here is input dialog box for user to enter input:
 
[[Image:zenity_entry.png|left|400px]]
13,420
edits

Navigation menu