[Israel.pm] perl/tk warnings

Offer Kaye oferk at oren.co.il
Sun Apr 25 05:17:45 PDT 2004

> Sorry, this is the error I get :
> Tk::Error: bad window path name "<page_name>" at app.pl line 595,
> <sum_file> line 91.
>   Tk callback for raise
>   [\&main::__ANON__]
>   Tk callback for .toplevel.frame2.button1
>   Tk::__ANON__ at
> /usr/local/tools/perl/5.8.3/lib/site_perl/5.8.3/PA-RISC2.0/Tk.pm line 225
>   Tk::Button::butUp at
> /usr/local/tools/perl/5.8.3/lib/site_perl/5.8.3/PA-RISC2.0/Tk/Button.pm
> line 111
> Shlomi

According to the Tk::Widget documentation:
" ... If aboveThis is specified then it must be the path name of a window
that is either a sibling of $widget or the descendant of a sibling of

So it seems you are calling the Tk::Widget "raise" method instead of the
NoteBook raise(). Try creating a NoteBook widget directly to see if if using
"Scrolled" is somehow causing the problem, if it is, read the "Scrolled"
documentation carefully to see where the problem is.

Offer Kaye

More information about the Perl mailing list