I'm using a BrowseEntry widget to display a list of files the user can select. The user might be deleting or making copies in a shell window while using the tool, so I wanted the list to be current when the user "browses" the list on the BrowseEntry. I thought I could just bind the refresh subroutine to the BrowseEntry, but that doesn't work since the binding is apparently on the 'Entry' subwidget and not on the 'arrow' subwidget. I then tried to bind specifically to the arrow by creating a reference:
That didn't work either. Is there a way to bind directly to the arrow?
Code:
$arrow=$browseentry->Subwidget("arrow");
$arrow->bind("<Button>", \&refreshBE);
That didn't work either. Is there a way to bind directly to the arrow?