educare:zenity
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | |||
educare:zenity [2017/07/01 14:19] – profpro | educare:zenity [2020/06/08 22:20] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====Zenity==== | ||
+ | è un semplice strumento per aprire finestre di dialogo come questa | ||
+ | |||
+ | <code bash> | ||
+ | #!/bin/bash | ||
+ | |||
+ | zenity --question --text=" | ||
+ | if [ $? = 0 ]; then | ||
+ | obsession-exit -p | ||
+ | else | ||
+ | exit | ||
+ | fi | ||
+ | </ | ||
+ | |||
+ | un programma simile si chiama // | ||
+ | |||
+ | |||
+ | <code bash> | ||
+ | |||
+ | #!/bin/sh | ||
+ | |||
+ | risposta=$(xmessage | ||
+ | if [ $risposta = " | ||
+ | then | ||
+ | obsession-exit -p | ||
+ | fi | ||
+ | </ |