dgilby has asked for the wisdom of the Perl Monks concerning the following question:
Hi everyone How are things?
I need some help, I am sure it is simple but I can't seem to get er done.
I am trying to open a dialog select a file (works) and place/display it in the entry textbox for processing (doesn't work)
Any help would e greatly appreciated
#!/usr/bin/perl -w use strict; use Tk; my $ImageFilePath; my $mw = MainWindow -> new; $mw -> title("IMU Data Processing"); # sizes window $mw -> geometry('400x200'); #my $frm = $mw -> Frame(); # label for Image times file my $lblImageFile = $mw->Label(-text => "Image File:", -padx=>5, -pady= +>5); # entry textbox for Image times dialog my $entImageFile = $mw->Entry(-width=>30, -textvariable=>\$ImageFilePa +th); # button to browse for file my $butImageFile = $mw->Button(-text=>'Browse', -command=> sub { openI +mageFileDialog($entImageFile)}); MainLoop; sub openImageFileDialog { my $imageFilePathOpen = $mw->getOpenFile(-title => 'Open Image File:') +; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Placing a file path in a entrybox from a dialogbox
by stefbv (Priest) on Dec 02, 2009 at 16:20 UTC | |
|
Re: Placing a file path in a entrybox from a dialogbox
by keszler (Priest) on Dec 02, 2009 at 15:41 UTC | |
by Marshall (Canon) on Dec 03, 2009 at 01:39 UTC |