lil_v has asked for the wisdom of the Perl Monks concerning the following question:
Any Suggestions?#!/usr/bin/perl use Tk; use Tk::JPEG; use Tk::Dialog; my $mw = MainWindow->new; my $c = $mw->Canvas( -tile => $tile, qw/-width 1500 -height 750/); $c->pack(-side => 'left'); $path = $c->Label(-text => "Default Path For Saving Input Files", -font => 'Garamond 10 bold') ->place(-relx => 0.23, -rely => + 0.4); $path_text = $c->Entry(-textvariable => \$def_path, -width => 50)->place(-relx => 0.4, -rely => 0.4); $path_button = $c->Button(-text => "Browse", -font => 'Garamond 8 bold', -width => 5, -command => \&browse)->place(-relx => 0.65, -rely => 0.4); MainLoop; sub browse { $def_path = $path_button->chooseDirectory(-title => 'Select direc +tory', -initialdir => '.', -mustexist => 1); }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: chooseDirectory set Default
by olus (Curate) on Jul 11, 2008 at 13:56 UTC | |
by lil_v (Sexton) on Jul 11, 2008 at 15:19 UTC | |
by Lawliet (Curate) on Jul 11, 2008 at 15:45 UTC | |
by lil_v (Sexton) on Jul 11, 2008 at 20:28 UTC | |
by olus (Curate) on Jul 11, 2008 at 22:23 UTC | |
|
Re: chooseDirectory set Default
by zentara (Cardinal) on Jul 11, 2008 at 16:47 UTC | |
|
Re: chooseDirectory set Default
by psini (Deacon) on Jul 11, 2008 at 13:48 UTC | |
by lil_v (Sexton) on Jul 11, 2008 at 13:59 UTC | |
by psini (Deacon) on Jul 11, 2008 at 14:05 UTC | |
by lil_v (Sexton) on Jul 11, 2008 at 14:20 UTC | |
by shoness (Friar) on Jul 11, 2008 at 18:38 UTC |