hak0983 has asked for the wisdom of the Perl Monks concerning the following question:
i need new to clear a text area, open to create a window which will allow me to open files on my computer that are pl files, and the save to save the text in my textarea on my pc. I dont know how to use gui libraries-sorry
my $mw12= $mw->configure(-menu=> my $menubar = $mw->Menu); my $file = $menubar->cascade(-label =>'~File'); my $help = $menubar->cascade(-label =>'~Help'); my $new = $file ->command(-label=>'New', -underline=>0); my $open = $file ->command(-label=>'Open', -underline=>0); my $save = $file ->command(-label=>'Save', -underline=>0); my $saveas = $file ->command(-label=>'Save As..', -<br>underline=>1); my $exit = $file ->command(-label=>'Exit', -underline=>0, -command =>\ +&exit);
janitored by ybiC: Minor format tweaks, including <code> tags around code snippet
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: How to write file menu
by moot (Chaplain) on Mar 28, 2005 at 21:35 UTC | |
|
Re: How to write file menu
by moot (Chaplain) on Mar 28, 2005 at 22:45 UTC | |
by merlyn (Sage) on Mar 28, 2005 at 23:03 UTC | |
by moot (Chaplain) on Mar 29, 2005 at 15:06 UTC | |
|
Re: How to write file menu
by InfiniteLoop (Hermit) on Mar 29, 2005 at 04:07 UTC |