I've got a use case where I have a few Entry widgets with one of them infrequently modified and excluded from the tab key focus traversal. I have found need to add a Notebook to this with all existing widgets etc in page1, some new things on page2. I can't seem to exclude the page tabs from the tab key focus traversal... Maybe you can't? This will cramp my style enough to drop the Notebook if thats the case, so I want to make sure its not just user error. Here is an example, desired behavior is just to tab between the top three Entry only.
use strict;
use warnings;
use Tk;
require Tk::NoteBook;
my $main = MainWindow->new( );
my $nb = $main->NoteBook(-takefocus => 0 )->pack(-expand => 1, -fill =
+> 'both');
my $page1 = $nb->add('page1', -label => 'Page 1');
$page1->Entry()->pack();
$page1->Entry()->pack();
$page1->Entry()->pack();
$page1->Entry(-takefocus => 0)->pack();
$nb->add('page2', -label => 'Page 2');
MainLoop;
Thanks
-
Are you posting in the right place? Check out Where do I post X? to know for sure.
-
Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
<code> <a> <b> <big>
<blockquote> <br /> <dd>
<dl> <dt> <em> <font>
<h1> <h2> <h3> <h4>
<h5> <h6> <hr /> <i>
<li> <nbsp> <ol> <p>
<small> <strike> <strong>
<sub> <sup> <table>
<td> <th> <tr> <tt>
<u> <ul>
-
Snippets of code should be wrapped in
<code> tags not
<pre> tags. In fact, <pre>
tags should generally be avoided. If they must
be used, extreme care should be
taken to ensure that their contents do not
have long lines (<70 chars), in order to prevent
horizontal scrolling (and possible janitor
intervention).
-
Want more info? How to link
or How to display code and escape characters
are good places to start.
|