summaryrefslogtreecommitdiffstats
path: root/docs/interactive/ask_from_list
blob: 63c0ee996cec580661eb4cf490369392ad2c2c2c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#!/usr/bin/perl
# Yves Duret <yduret at mandrakesoft.com>
# license: GPL

use lib qw(/usr/lib/libDrakX);
use common;
use interactive;

my %l = (
	 0 => "Welcome To Crackers",
	 1 => "Poor",
	 2 => "Low",
	 3 => "Medium",
	 4 => "High",
	 5 => "Paranoid",
	);

my $in = 'interactive'->vnew(undef, 'default');

my $level = $in->ask_from_list("window title - ask_from_list",
			       "radio button\nexamples of utilisation of ask_from_list",
			       [ values %l ], $l{2}
			      ) or $in->exit(0);

print "$level\n";
$in->exit(0);

2462f95fafbee578f8e8eb69d7309'>updated Vietnamese filePablo Saratxaga2003-05-302-67/+68 * updated Albanian filePablo Saratxaga2003-05-281-5/+46 * updated pot filePablo Saratxaga2003-05-261-3/+43 * updated pot filePablo Saratxaga2003-05-222-75/+134 * updated pot filePablo Saratxaga2003-05-202-98/+147 * updated German, Estonian and Finnish filesPablo Saratxaga2003-05-203-1420/+1964 * update french translationThierry Vignaud2003-05-201-67/+54 * updated Spanish translationsFabián Mandelbaum2003-05-191-221/+176 * updated pot filePablo Saratxaga2003-05-16