in reply to Tk Columns

If you're using -sort rather than -buttoncommand (and unfortunately, Tk::Columns appears not support both simultaneously), then you're out of luck. You might consider using an icon that suggests sort in either direction, e.g. an "up/down" arrow of some kind.

Otherwise, you could try using -buttoncommand rather than -sort, but that gets a whole lot more complicated because then you have to write the code that does the sort.

Replies are listed 'Best First'.
Re^2: Tk Columns
by Anonymous Monk on Jul 08, 2005 at 12:28 UTC
    Thanks for the idea. But I didnt have to write SortCommand again. I just did the following
    '-buttoncommand' => sub {
    $main::oldimage = $_[0]->cget (-image);
    $_[0]->configure (-image => $main::newimage);
    $main::newimage = $main::oldimage;
    $_[0]->SortColumn;
    }