Changes

Jump to: navigation, search

How to Use Zenity

364 bytes added, 12:25, 17 July 2011
no edit summary
<table>
<tr>
<td>'''zenity --info --text "Here is an example of using zenity command to display text in a dialog box instead instead of using echo to display in a shell..."'''</td>
</tr>
<tr>
<table>
<tr>
<td>'''zenity --list --radiolist --text "<&lt;b>&gt;Please<&lt;/b> &gt; make a selection:" --hide-header --column "Buy" --column "Item" FALSE "Door 1" FALSE "Door 2" FALSE "Door 3" FALSE Quit'''</td>
</tr>
<tr>
<td>Here is input dialog box for user to enter make a selection from a menu:<br /><br />[[Image:zenity_selection.png|left|300px]]</td> </tr></table>    <u>Piping Command Output to a Graphical Display</u> <table> <tr> <td>'''cal | zenity --text-info'''</td> </tr> <tr> <td>Here is inputdialog box to display stdout from a command graphically as opposed to in a shell:<br /><br />[[Image:zenity_selectionzenityPipe.png|left|200px300px]]</td>
</tr>
</table>
</tr>
<tr>
<td>Here is output from above command. Notice how each sentence appears on a separate line. The "\n" character represents a new-line:<br /><br />[[Image:newlines.png|left|100px150px]]</td>
</tr>
</table>
13,420
edits

Navigation menu