in reply to Re^2: Tk: Does the 'grid' geometry manager has a problem with a scrolled parent?
in thread Tk: Does the 'grid' geometry manager has a problem with a scrolled parent?
It's difficult to know what's causing the error without seeing a bit more information.
Are you sure you've created graph_pane correctly?
Try putting this near the beginning of your code:
use Data::Dumper; $Data::Dumper::Indent = 1;
and just before the line where the error occurs (Can't call method "gridSize" on an undefined value at tes7 line 23) put this:
printf "graph_pane => %s\n", Dumper(\$graph_pane);
Assuming that graph_pane was assigned correctly, it should display the entire underlying data structure. For example, I get:
graph_pane => $VAR1 = \bless( { 'SubWidget' => { 'scrolled' => bless( { '_After_' => { 'after#3' => bless( [ ${$VAR1}->{'SubWidget'}->{'scrolled'}, 'after#3', 'idle', 'once', bless( [ 'Manage', ${$VAR1}->{'SubWidget'}->{'scrolled'}, bless( { # # ...Many lines omitted... # }, 'Tk::Frame' );
Did you get something like the above, or something completely different?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Tk: Does the 'grid' geometry manager has a problem with a scrolled parent?
by tanyeun (Sexton) on Aug 09, 2006 at 02:35 UTC |