Click here to get back home

Curses::Widgets::Menu Question

 HomeNewsGroups | Search | About
 comp.lang.perl.modules    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
Curses::Widgets::Menu Question HaroldWho 05-11-2005
Get Chitika Premium
Posted by HaroldWho on May 11, 2005, 8:32 pm
Please log in for more thread options


Anyone with experience using this module--the following code fragment is
supposed to run a sub after menu item selection is finished.

What *actually* happens is that *every one* of the subs is run (in order)
after menu item selection is finished.

I must be missing something simple, but I've run out of ideas.

MENUS => {
MENUORDER => [qw(Encrypt Decrypt Verify Sign Clearsign ListKeys)],
Encrypt => {
ITEMORDER => [('SingleFile','GlobbedFiles')],
'SingleFile' => \&return_selection1("single"),
'GlobbedFiles' => \&return_selection1("glob"),
},
Decrypt => {
ITEMORDER => [('SingleFile','GlobbedFiles')],
'SingleFile' => \&return_selection2("single"),
'GlobbedFiles' => \&return_selection2("glob"),
},
        ...

Any suggestions appreciated.

HW
--
Powered by SuSE Linux 9.0 -- Kernel 2.6.11
News Reader slrn 0.9.8.1




Similar ThreadsPosted
Compile problem: Curses::Widgets September 24, 2007, 2:54 pm
SOLVED: Curses::Widgets Runtime Error October 13, 2007, 3:01 pm
WWW:Mechanize with Menu September 9, 2006, 9:13 pm
ANSI-colored text in menu possible? October 2, 2004, 4:04 pm
CDK vs Curses::UI April 15, 2005, 11:12 am
Perl Tk:Scheduler command called subroutine fails to talk to tk widgets January 31, 2007, 2:05 pm
keylist for set_binding in Curses::UI February 7, 2005, 3:11 pm
Curses-perl that doesn't live up to it's name? November 10, 2006, 10:30 pm
Installing Curses Module? February 22, 2008, 11:45 am
curses module installation failed March 16, 2006, 1:26 pm

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap