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:') +; }
In reply to Placing a file path in a entrybox from a dialogbox by dgilby
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |