Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

how to set tab order in the perl tk?

Replies are listed 'Best First'.
Re: how to set tab order in the perl tk?
by zentara (Cardinal) on Dec 19, 2008 at 12:05 UTC
      thanks a lot!!zentara.. I have used the second approach in my application.. But still have some problems..See the Code snippet below:-
      my $spane = $mw->Pane(-bg => "orange")->pack(-expand => 1, -fill => 'b +oth') my $scrl_y = $mw -> Scrollbar(-command=>[$spane,'yview']); $spane -> configure(-yscrollcommand=>[$scrl_y,'set']); $spane -> pack(-expand => 1, -fill => "both", -side => "left"); $scrl_y -> pack(-expand => 1, -fill => "y"); #$spane -> focus; $scrl_y -> focus;
      HERE both of the above approaches ($spane -> focus; ,$scrl_y -> focus; ) are not making scrollbar as a default focus. Please help!! Thanks in Advance
        I said earlier manual scrollbars are a PITA, :-( The Scrolled Pane works pretty well, maybe instead of making your own scrollbars, get them from a Scrolled Pane. Try making a Scrolled('Pane'), then extract the scrollbars with $yscrollbar = $spane->Subwidget('yscrollbar'); and same for x.

        If that dosn't work, post a complete minimal code example of what you are trying, and maybe someone will spot a way to make it work.


        I'm not really a human, but I play one on earth Remember How Lucky You Are
Re: how to set tab order in the perl tk?
by Anonymous Monk on Dec 19, 2008 at 07:26 UTC
Re: how to set tab order in the perl tk?
by Anonymous Monk on Dec 19, 2008 at 07:24 UTC
    There is no such concept in Tk. You can however bind tabs like all other keys.