Re: Tutorial for a menu driven perl script

2012-12-21 Thread Tony Esposito
Look for tutorials on Perl/Tk Google Perl/Tk Here's an old one that is still good -> http://www.perl.com/pub/1999/10/perltk/ HTH From: newbie01 perl To: beginners Sent: Thursday, 20 December 2012, 18:42 Subject: Tutorial for a menu driven per

Re: Tutorial for a menu driven perl script

2012-12-21 Thread David Precious
On Fri, 21 Dec 2012 13:42:18 +1300 newbie01 perl wrote: > Hi, > > Does anyone know of any great source/link for tutorials on menu > driven Perl? "Menu driven"? You may need to be more specific. Perhaps you mean terminal-based, using e.g. curses-based stuff? Perhap

Tutorial for a menu driven perl script

2012-12-20 Thread newbie01 perl
Hi, Does anyone know of any great source/link for tutorials on menu driven Perl? Thanks in advance.

Re: Need help with writing recursive menu in Perl.

2010-05-18 Thread Mohan
Hi There is an example available in the following location http://squirrelmail.svn.sourceforge.net/viewvc/squirrelmail/trunk/squirrelmail/config/conf.pl?view=markup its a recursive menu driven script. HTH. -- Regards, Mohan. On 18/05/10 13:40, Steve Bertrand wrote: On 2010.05.17 21:44

Re: Need help with writing recursive menu in Perl.

2010-05-18 Thread Steve Bertrand
On 2010.05.17 21:44, Chetan wrote: > Dear Perl Experts, > > I need a big favor & help for me to learn perl programming, > I need to write menu to display (say Alpha, Beta, Gema) & store in > variable var1, based on which option is selected, I need to display > values in

Need help with writing recursive menu in Perl.

2010-05-18 Thread Chetan
Dear Perl Experts, I need a big favor & help for me to learn perl programming, I need to write menu to display (say Alpha, Beta, Gema) & store in variable var1, based on which option is selected, I need to display values in the next menu (if Alpha is selected A1, A2, A3 & so on) and

Re: Perl-Tk, copy/paste context-menu for entries

2009-08-09 Thread Mishustin Alexey
8/9/2009, "Shawn H. Corey" вы писали: >Sorry, I don't know any good resources for Perl/Tk. When all else >fails, try perlmonks http://perlmonks.org/ Perlmonks is great! I've already got the answer on my question. Thank you for your advice again. -- Regards, Alex -- To unsubscribe, e-mail: be

Re: Perl-Tk, copy/paste context-menu for entries

2009-08-09 Thread Mishustin Alexey
В Вск, 09/08/2009 в 15:30 -0400, Shawn H. Corey пишет: > Mishustin Alexey wrote: > > В Вск, 09/08/2009 в 07:40 -0400, Shawn H. Corey пишет: > >> Mishustin Alexey wrote: > >>> Hi, > >>> > >>> Another question about Perl-Tk. > >> Try asking on the Beginners Perl/Tk list > >> http://lists.cpan.org/s

Re: Perl-Tk, copy/paste context-menu for entries

2009-08-09 Thread Shawn H. Corey
Mishustin Alexey wrote: В Вск, 09/08/2009 в 07:40 -0400, Shawn H. Corey пишет: Mishustin Alexey wrote: Hi, Another question about Perl-Tk. Try asking on the Beginners Perl/Tk list http://lists.cpan.org/showlist.cgi?name=beginning_perl_tk This mailing list seems to be dead; nothing but spam

Re: Perl-Tk, copy/paste context-menu for entries

2009-08-09 Thread Mishustin Alexey
В Вск, 09/08/2009 в 07:40 -0400, Shawn H. Corey пишет: > Mishustin Alexey wrote: > > Hi, > > > > Another question about Perl-Tk. > > Try asking on the Beginners Perl/Tk list > http://lists.cpan.org/showlist.cgi?name=beginning_perl_tk This mailing list seems to be dead; nothing but spam for the

Re: Perl-Tk, copy/paste context-menu for entries

2009-08-09 Thread Mishustin Alexey
В Вск, 09/08/2009 в 07:40 -0400, Shawn H. Corey пишет: > Mishustin Alexey wrote: > > Hi, > > > > Another question about Perl-Tk. > > Try asking on the Beginners Perl/Tk list > http://lists.cpan.org/showlist.cgi?name=beginning_perl_tk OK, thank you. -- Regards, Alex -- To unsubscribe, e-mail

Re: Perl-Tk, copy/paste context-menu for entries

2009-08-09 Thread Shawn H. Corey
Mishustin Alexey wrote: Hi, Another question about Perl-Tk. Try asking on the Beginners Perl/Tk list http://lists.cpan.org/showlist.cgi?name=beginning_perl_tk -- Just my 0.0002 million dollars worth, Shawn Programming is as much about organization and communication as it is about co

Perl-Tk, copy/paste context-menu for entries

2009-08-09 Thread Mishustin Alexey
Hi, Another question about Perl-Tk. I need to make context-menus with 'Copy' and 'Paste' commands for 'entry' widgets. I found the following syntax for it. my $popup = $mwindow->Menu( -tearoff=> 0, -menuitems => [

Re: Tk disabling menu entries, etc.

2008-02-19 Thread MK
-> Well, I tested your script. It gains appreciable memory at each menu -> invocation. My deep cascading example, stays steady in memory use. sigh. yes, i just observed this myself w/ "top". -> ( And as a side note, this is where using -> strict comes into play. it

Re: Tk disabling menu entries, etc.

2008-02-17 Thread MK
On 02/17/2008 12:08:40 PM, zentara wrote: -> Yeah, dynamically generated menus would be the way to go, -> but I would watch out for memory gains everytime you invoke the menu. -> Tk isn't very good about object cleanup. i will remember and look into this. -> Another problem w

Re: Tk disabling menu entries, etc.

2008-02-17 Thread MK
from zentara: -> Now you may not see the usefulness of the entryconfigure or the cget, -> but what if you had a more complex menu, and needed to dynamically -> grey out items? That is exactly what i did (the cascading menus are a recursive tree, with several hundred+ total entries dy

Re: Tk disabling menu entries

2008-02-12 Thread John W. Krahn
MK wrote: Amazingly, what worked in the end was simply adding -state=> 'disabled' into the actual $menu->command, hence avoiding the documented "entryconfigure" method or cget altogether but if anyone has any patience left could you explain: my $state

Re: Tk disabling menu entries

2008-02-12 Thread MK
Amazingly, what worked in the end was simply adding -state=> 'disabled' into the actual $menu->command, hence avoiding the documented "entryconfigure" method or cget altogether but if anyone has any patience left could you explain: my $state = ($count++ & 1) ?

Re: Tk disabling menu entries

2008-02-12 Thread MK
On 02/12/2008 12:49:30 PM, kens wrote: -> On Feb 12, 9:48 am, [EMAIL PROTECTED] (Mk) wrote: -> > sorry, zentara, but with my perl 5.8.8 this script first produces: -> > -> > Bareword "Mainloop" not allowed while "strict subs" in use at -> > ./Tkmenuentryconfigure.pl line 25 -> > -> > And even afte

Re: Tk disabling menu entries

2008-02-12 Thread kens
On Feb 12, 9:48 am, [EMAIL PROTECTED] (Mk) wrote: > sorry, zentara, but with my perl 5.8.8 this script first produces: > > Bareword "Mainloop" not allowed while "strict subs" in use at > ./Tkmenuentryconfigure.pl line 25 > > And even after i delete "use strict" i now get: > > Useless use of a const

Re: Tk disabling menu entries

2008-02-12 Thread Rob Dixon
MK wrote: > zentara wrote: >> [EMAIL PROTECTED] (MK) wrote: no matter where i use: $menu->entryconfigure(#,"disabled); i get: Can't locate object method "entryconfigure" via package "Tk::Menu::Cascade" unless i use it on a non-existent $men

Re: Tk disabling menu entries

2008-02-12 Thread MK
enuentryconfigure.pl line 25 I presume it did work for you at some point? I also notice from Tk::Menu "BUGS At present it isn't possible to use the option database to specify values for the options to individual entries." I have gotten around this by regenerating the menus

Tk disabling menu entries

2008-02-11 Thread MK
no matter where i use: $menu->entryconfigure(#,"disabled); i get: Can't locate object method "entryconfigure" via package "Tk::Menu::Cascade" unless i use it on a non-existent $menu, in which case i get: Can't call method "entryconfigure"

Re: GUI-based menu-ing script for UNIX

2005-08-31 Thread Daniel Kasak
[EMAIL PROTECTED] wrote: Is there any easy to customize GUI-based menu-ing script for UNIX? I currently have a text-base menu program for gluing my applications, and I am interested in putting in revising it to a GUI-based (for a change). Currently I am looking at aumenu, which according to

RE: GUI-based menu-ing script for UNIX

2005-08-25 Thread Timothy Johnson
CORRECTION: Perl/Tk? -Original Message- From: Timothy Johnson Sent: Thursday, August 25, 2005 11:34 AM To: [EMAIL PROTECTED]; beginners@perl.org Subject: RE: GUI-based menu-ing script for UNIX That all depends on how involved you want this project to be. Have you looked at Tk

RE: GUI-based menu-ing script for UNIX

2005-08-25 Thread Timothy Johnson
That all depends on how involved you want this project to be. Have you looked at Tk? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Thursday, August 25, 2005 11:24 AM To: beginners@perl.org Subject: GUI-based menu-ing script for UNIX Is there any easy to

GUI-based menu-ing script for UNIX

2005-08-25 Thread William . Ampeh
Is there any easy to customize GUI-based menu-ing script for UNIX? I currently have a text-base menu program for gluing my applications, and I am interested in putting in revising it to a GUI-based (for a change). Currently I am looking at aumenu, which according to the documentation, was

Win32::Setupsup menu item enumeration

2005-03-30 Thread Peter Rabbitson
Hi everyone, I got stuck with the inability of Setupsup::EnumChildWindows or Setupsup::GetWindowProperties to generate a list of available choices in a regular menu (the one you get when you do 'open file' for example). I do not know a thing about MFC, and perl/windows integration is n

RE: help with perl/cgi creating a html code with pull down menu

2004-10-18 Thread Jim
> Hi: I have created a perl cgi script to grab two string > inputs from users. The script shown below expects the user to > type in the value. I would like to change this and give the > user a pulldown menu to pick from a list of items. Could > somebody provide help with

help with perl/cgi creating a html code with pull down menu

2004-10-17 Thread Ravi Malghan
Hi: I have created a perl cgi script to grab two string inputs from users. The script shown below expects the user to type in the value. I would like to change this and give the user a pulldown menu to pick from a list of items. Could somebody provide help with what I need to change

Re: A simple text or GUI-based menu script

2004-07-13 Thread Mike Flannigan
> Subject: Re: A simple text or GUI-based menu script > Date: Sat, 10 Jul 2004 07:43:17 -0400 > From: zentara <[EMAIL PROTECTED]> > To: [EMAIL PROTECTED] > > I have very little experience with getting Perl running on Windows. > But it seems it should run because it

Re: A simple text or GUI-based menu script

2004-07-10 Thread Marco Perl
how do I get all thread for below subject: Re: A simple text or GUI-based menu script thanks, Marco. __ Do you Yahoo!? Yahoo! Mail - 50x more storage than other providers! http://promotions.yahoo.com/new_mail -- To unsubscribe, e-mail: [EMAIL

Re: A simple text or GUI-based menu script

2004-07-10 Thread Marco Perl
don't know why, even though I changed dir to share. so I can't run your script. could you help? regards, Marco. > --- zentara <[EMAIL PROTECTED]> wrote: > > On Thu, 08 Jul 2004 09:41:02 -0400, zentara > > <[EMAIL PROTECTED]> > > wrote: > > >

RE: Request to help beautify a Perl-based menu script

2004-07-09 Thread Bob Showalter
[EMAIL PROTECTED] wrote: > Hello, > > This is the current state of my text-based Perl "menu" script. It > pretty much does everything I want with the exception of colors (two > of my highly influential users want colors). I will therefore > appreciate any help or

Request to help beautify a Perl-based menu script

2004-07-09 Thread William . Ampeh
Hello, This is the current state of my text-based Perl "menu" script. It pretty much does everything I want with the exception of colors (two of my highly influential users want colors). I will therefore appreciate any help o

A simple text or GUI-based menu script

2004-07-07 Thread William . Ampeh
rks the beginning of another. I have two question. 1./ Where can I locate a text or GUI-based menu program in Perl to bundle together a set of scripts and program. That is, something that will allow me to create a menu based system for in-house use. For example, a user selects option 1 to backup fi

Re: Curved edge in Menu

2004-03-26 Thread Oliver Schnarchendorf
On Fri, 26 Mar 2004 11:04:45 +0530, jaffer wrote: > I created the attached sub menu in CGI using Tables. > > In that fig, Client Tools is the Main Menu and when I clicked on it the sub > menu appears as above. Mallik, I am sorry to tell you that you have chosen the wrong fo

Curved edge in Menu

2004-03-26 Thread jaffer
Dear Friends,I created the attached sub menu in CGI using Tables.In that fig, Client Tools is the Main Menu and when I clicked on it the sub menu appears as above. Now I want the edges to be curved as follows. Is it possible to curve the edges as show above. I have created the sub menu

Re: Create Perl Menu

2003-07-23 Thread Kevin Pfeiffer
In article <[EMAIL PROTECTED]>, Phan Ros wrote: > Hi, I am taking perl at school. > > > > I need help to create a simple menu with input of a( current date), > b(users currently log in), c(name of working directory), and d(contents of > the working directory). A

Re: Create Perl Menu

2003-07-23 Thread jdavis
On Tue, 2003-07-22 at 11:35, Phan Ros wrote: > Hi, I am taking perl at school. > > > > I need help to create a simple menu with input of a( current date), b(users > currently log in), c(name of working directory), and d(contents of the > working directory

RE: Create Perl Menu

2003-07-23 Thread Vidal, Christopher, SOLCM
the format of the menu. 2. ask the user for the menu option / create a scalar to catch this response. 3. setup if else to perform desired output based on user input. Read up on date and time its tricky. If your in the states - Get "Perl for Dummmies" I have a copy and refer to it a

Re: Create Perl Menu

2003-07-22 Thread Oliver Schnarchendorf
On Tue, 22 Jul 2003 11:35:16 -0600, Phan Ros wrote: > I need help to create a simple menu with input of a( current date), b(users > currently log in), c(name of working directory), and d(contents of the > working directory). Good, we would love to help you... yet we are not here t

Create Perl Menu

2003-07-22 Thread Phan Ros
Hi, I am taking perl at school. I need help to create a simple menu with input of a( current date), b(users currently log in), c(name of working directory), and d(contents of the working directory). Thanks Angkor

RE: Create Perl Menu

2003-07-22 Thread Dan Muey
> > Hi, I am taking perl at school. Good for you, I wish my school had it when I was there. > > > > I need help to create a simple menu with input of a( current > date), b(users currently log in), c(name of working > directory), and d(contents of the working dire

Re: menu

2003-01-11 Thread Rob Dixon
Hi Dylan "Dylan Boudreau" <[EMAIL PROTECTED]> wrote in message 004c01c2b8cd$0920dbb0$0400a8c0@dylan">news:004c01c2b8cd$0920dbb0$0400a8c0@dylan... > I am trying to make a small menu for a script and the options are 1 or 2 > or 9. I have it written like this &

RE: menu

2003-01-10 Thread Dylan Boudreau
Thanks everyone, for some reason a regexpr never came to mind. Good thing its Friday, Dylan -Original Message- From: Dan Muey [mailto:[EMAIL PROTECTED]] Sent: January 10, 2003 1:35 PM To: Dylan Boudreau; [EMAIL PROTECTED] Subject: RE: menu You need a regular expression like Until

RE: menu

2003-01-10 Thread Dan Muey
extra stuff Dan -Original Message- From: Dylan Boudreau [mailto:[EMAIL PROTECTED]] Sent: Friday, January 10, 2003 11:24 AM To: [EMAIL PROTECTED] Subject: menu I am trying to make a small menu for a script and the options are 1 or 2 or 9. I have it written like this until ($s

RE: menu

2003-01-10 Thread Paul Kraus
; } hope that helps. > -Original Message- > From: Dylan Boudreau [mailto:[EMAIL PROTECTED]] > Sent: Friday, January 10, 2003 12:24 PM > To: [EMAIL PROTECTED] > Subject: menu > > > I am trying to make a small menu for a script and the options > are 1 or 2 or 9. I have it wr

RE: menu

2003-01-10 Thread Wagner, David --- Senior Programmer Analyst --- WGO
Dylan Boudreau wrote: > I am trying to make a small menu for a script and the options are 1 > or 2 or 9. I have it written like this > > until ($selection == '1|2|9'){ > do some stuff > } > > > and it wont work. I know it is something simple but I

menu

2003-01-10 Thread Dylan Boudreau
I am trying to make a small menu for a script and the options are 1 or 2 or 9. I have it written like this until ($selection == '1|2|9'){ do some stuff } and it wont work. I know it is something simple but I am a little simple myself today and don't know what I

Text Menu Telnet App, on Windoze

2002-10-24 Thread sangoma
Hi, Not sure if 'Text Menu Telnet App' is the correct nomenclature, hopefully you know what I mean, one of those old style apps that supported VT clients. I'm very much a newbie and have strung something together but I'm not too happy with the way I'm doing menus,

RE: Help with database generated pop up menu

2002-10-10 Thread Dave Birkbeck
ute || die "Could not execute SQL statement ... maybe invalid?"; #Output database results to pop up menu print ""; while ( my @row = $sth->fetchrow_array() ) { print "$row[0]\n"; } print "\n"; $sth->finish; $dbh->disconnect; -Or

Re: Help with database generated pop up menu

2002-10-10 Thread Janek Schleicher
David Birkbeck wrote: > Can someone help me with creating a script to return certain information from a >Postgres database to a drop down box on a webpage? What fails ? > #!/usr/bin/perl > use strict; use warnings; > use CGI; > use DBI; > > #Define connection values > $DBSource = 'dbi:P

Help with database generated pop up menu

2002-10-09 Thread David Birkbeck
pare($sqlstatement); $sth->execute || die "Could not execute SQL statement ... maybe invalid?"; #Output database results to pop up menu ; while ( my @row = $sth->fetchrow_array() ) { $row[0]; } ; ; $sth->finish; $dbh->disconnect;

Re: Perl Menu Script

2002-07-26 Thread John W. Krahn
Jay Grant wrote: > > Hi, Hello, > Please forgive this VERY basic perl question .. but I am trying to write a > perl menu script but I can't seem to get the commands to run. I can get a > normal print to work, but not the unix commands (date, who, etc.) Here is > th

RE: Perl Menu Script

2002-07-26 Thread David . Wagner
Made minor changes: #!perl -w my $date = localtime(time); while ( 1 ) { print "\nCOMMAND MENU\n"; print "\n a. Current date and time\n"; print "\n b. Users currently logged in\n"; print "\n c. Name of the worki

Re: Perl Menu Script

2002-07-26 Thread drieux
On Friday, July 26, 2002, at 10:56 , Jay Grant wrote: [..] > what am I doing wrong? > > #!/usr/local/bin/perl > $date = "/usr/bin/date"; the double quotes there make that a 'string' just as my $date = "that really cute one with the big tracks of land"; what you want to do is 'execute'

Re: Hours popup menu

2002-06-12 Thread John W. Krahn
Kevin Old wrote: > > Hello all, Hello, > What I'd like to do is create a popup menu on a web page that > has the hours 00-59 in it. Thing is, the only way I can come > up to do it is by writing out something like below..and then > putting a reference to this ar

RE: Hours popup menu

2002-06-10 Thread Langa Kentane
ew and could be dead wrong. What does the list say? Regards Langa > -Original Message- > From: Kevin Old [mailto:[EMAIL PROTECTED]] > Sent: 10 June 2002 04:47 PM > To: [EMAIL PROTECTED] > Subject: Hours popup menu > > > Hello all, > > What I'd like to

RE: Hours popup menu

2002-06-10 Thread Nikola Janceski
doh.. for got the d ... sprintf ( "%02d", $_ ) .. it's going to be a tiresome day. > -Original Message- > From: Kevin Old [mailto:[EMAIL PROTECTED]] > Sent: Monday, June 10, 2002 11:50 AM > To: [EMAIL PROTECTED] > Subject: Re: Hours popup menu > >

Re: Hours popup menu

2002-06-10 Thread Kevin Old
ECTED]> wrote: > @hoursvals = map { sprintf("%02", $_) } (00 .. 59); > > > -Original Message- > > From: Kevin Old [mailto:[EMAIL PROTECTED]] > > Sent: Monday, June 10, 2002 10:47 AM > > To: [EMAIL PROTECTED] > > Subject: Hours popup menu > >

Re: Hours popup menu

2002-06-10 Thread Connie Chan
PROTECTED]> Sent: Monday, June 10, 2002 10:46 PM Subject: Hours popup menu > Hello all, > > What I'd like to do is create a popup menu on a web page that has the hours 00-59 in it. Thing is, the only way I can come up to do it is by writing out something like below..and then

RE: Hours popup menu

2002-06-10 Thread Nikola Janceski
@hoursvals = map { sprintf("%02", $_) } (00 .. 59); > -Original Message- > From: Kevin Old [mailto:[EMAIL PROTECTED]] > Sent: Monday, June 10, 2002 10:47 AM > To: [EMAIL PROTECTED] > Subject: Hours popup menu > > > Hello all, > > What I'

Hours popup menu

2002-06-10 Thread Kevin Old
Hello all, What I'd like to do is create a popup menu on a web page that has the hours 00-59 in it. Thing is, the only way I can come up to do it is by writing out something like below..and then putting a reference to this array in the code for the popup menu. @hoursvals = (00 01

RE: Tk or menu based user interface.

2001-11-26 Thread Bob Showalter
> -Original Message- > From: Dermot Paikkos [mailto:[EMAIL PROTECTED]] > Sent: Monday, November 26, 2001 6:48 AM > To: [EMAIL PROTECTED] > Subject: Tk or menu based user interface. > > > Hi Perl gurus, > I am trying to do a smallish script that will run once

Tk or menu based user interface.

2001-11-26 Thread Dermot Paikkos
Hi Perl gurus, I am trying to do a smallish script that will run once users login to a UNIX server. I want the users to be presented with a menu of options so they can perform some tasks without giving them complete access to the system. Every where I look I see TK as the answer. So I popped

Win32 ::API and WIn32::Setupsup -- Window Handle and Menu handle

2001-10-23 Thread Abhra Debroy
Hi I am finding out handle to a window and menu of that window. In below mentioned script I am finding window with title "PCE - [api-getmenu]" and printing its handle and handle to it's menu. My problem is every time I open the window and run the program,it gives different handle

Re:dynamic menu

2001-07-05 Thread Jorge Goncalvez
Hi, I would like to do a dynamic menu in Perl Tk ie I would like to display all available drive in my computer dynamically because now it has been hard written. (A,B,C,D,E,F,G,H,I) How I can do this. My code: sub makemenu{ my $menubar = $mw->Menu(-type => &#