[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Criando botão extra no Dialog



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 10/16/2006 05:23 PM, Rodrigo Tavares wrote:
> Pessoal,
> 
> Quando rodo o comando abaixo sem a opção button o
> script funciona, mas quando rodo com a opçao button
> vem o erro :
> 
> Error: Expected at least 7 tokens for --radiolist,
> have 1.Use --help to list options.
> 
> Porque isso acontece ?

	Por causa da ordem dos parâmetros. :)


>  dialog                                            \
>        --title 'Pergunta'                            \
>        --radiolist 'Há quanto tempo você usa o Vi?'  \
>        --extra-button                                \
>        0 0 0                                         \
>        iniciante  'até 1 ano'      on                \
>        experiente 'mais de 1 ano'  off               \
>        guru       'mais de 3 anos' off

	Tente assim:

dialog                                                  \
	--extra-button                                  \
	--extra-label 'Botao'                           \
	--title 'Pergunta'                              \
	--radiolist 'Há quanto tempo você usa o Vi?'    \
	0 0 0                                           \
	iniciante  'até 1 ano'      on                  \
	experiente 'mais de 1 ano'  off                 \
	guru       'mais de 3 anos' off


> Tem um exemplo no site
> http://www.novell.com/coolsolutions/feature/16142.html.
> Não achei muita coisa de bom no google.


	http://aurelio.net/shell/dialog/


> Att,
> Faria

	Abraço,

- --
Felipe Augusto van de Wiel (faw)
"Debian. Freedom to code. Code to freedom!"
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (GNU/Linux)
Comment: Using GnuPG with Debian - http://enigmail.mozdev.org

iD8DBQFFNvE+CjAO0JDlykYRAq9tAJwJTI3WlLHajJ9VHEWvUZ839jf0OgCeK0Wg
7oIsY4fgi7GV+IHxaZ6ZpwU=
=sTwH
-----END PGP SIGNATURE-----



Reply to: