in reply to Binding an action to an item in a Listbox

Here's what you need for the ListBox part:
# Insert in open_file after $ListBox is defined. $ListBox->bind('<ButtonRelease-1>', sub { $filename = $ListBox->get('active')});
And here's what you need for the title part:
# Insert in load after $filename is set. $mw->configure(-title => 'TextEd - ' . $filename);

Replies are listed 'Best First'.
Re: Re: Binding an action to an item in a Listbox
by eoin (Monk) on Apr 18, 2003 at 09:15 UTC
    That work like a charm tall_man.
    If i need more I'll add to this node so keep your eyes open.
    Thanks,
    Eoin.