add $output_text->delete('0.1','end'); to your get_perms method right before foreach. This will clear the text widget before you insert.
2- The Directory list is not sorted in the in the order they appear (i.e c:/, then sub directories in that folder) how can I tie it up so they are sorted in the oder they appear?
You will need to change 2 things.
change to...my %dirs; find(sub { $dirs{$File::Find::dir}++;}, $path);
and $list_box->insert('end', keys %dirs); change to... $list_box->insert('end', @dirs);my @dirs; find(sub { push @dirs, $File::Find::dir }, $path);
As for point 3, do you want an icon to show up in the listbox, or do you want to put an icon in the text widget?
And point 4, yes it is possible to drag and drop using Tk. Reflecting back on point 3, do you want to drag from the listbox to the text widget, from the text widget to the listbox, or both?
--
.dave.
In reply to Re: Perl::Tk and Win32::Perms Startup help
by hiseldl
in thread Perl::Tk and Win32::Perms Startup help
by blackadder
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |