RE: State in Button Widget
<[email protected]> Fri, 27 Jul 2007 21:36:41 +0800
| Newsgroups | gmane.comp.lang.perl.tk |
|---|---|
| Message-ID | <CA51DF75AEDD5F439DC58E2383F6CE8C01E7BC65@sinse303.ap.infineon.com> |
Hello, I tried a lot to create a small test script but I wasn't able to reproduce the problem and the error is very erratic. After 7 days I got one error. TK Version : 804.027 Platform : 5.8 Generic_117350-46 sun4u sparc SUNW,Sun-Fire-V440 Perl Version : 5.8.7 Tk::Error: bad relief "active": must be flat, groove, raised, ridge, solid, or sunken at ......./lib/Tk/Button.pm line 55. (processing "-state" option) Tk callback for .frame.pane.frame.frame.frame1.table.checkbutton <Enter> (command bound to event) Tk::Error: bad relief "active": must be flat, groove, raised, ridge, solid, or sunken at ....../lib/Tk/Button.pm line 55. (processing "-state" option) Tk callback for .frame.pane.frame.frame.frame1.table.checkbutton1 <Enter> (command bound to event) To debug more maybe it would be nice, if Tk::Error is enahanced to report the compelete caller list and the line numbers. E.g. Tk::Error: bad relief "active": must be flat, groove, raised, ridge, solid, or sunken at ...../lib/Tk/Button.pm line 55. ...../lib/myWindow.pm line 100. Thanks and Regards Amit -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Slaven Rezic Sent: Friday, July 20, 2007 5:36 AM To: Didwania Amit (IFIN COM DC DAT DF) Cc: [email protected] Subject: Re: State in Button Widget <[email protected]> writes: > Hello, > > In perl/5.8.7 it seems now that state of a Button should be explicitly > specified. Otherwise it gives uninitialized error. > > I get the below errors quite often. > Use of uninitialized value in string ne at > /opt/perl_5.8.7/lib/Tk/Button.pm line 73. > Use of uninitialized value in string ne at > /opt/perl_5.8.7/lib/Tk/Button.pm line 73. > > Did anyone else get similar errors with button widgets? > The perl version is rather irrelevant. Please give us the Tk version: perl -MTk \99999 And a small (!) complete (!) script which reproduces the problem would be nice. -- Slaven Rezic - slaven <at> rezic <dot> de tkruler - Perl/Tk program for measuring screen distances http://ptktools.sourceforge.net/#tkruler --++**==--++**==--++**==--++**==--++**==--++**==--++**== ptk mailing list [email protected] https://mailman.stanford.edu/mailman/listinfo/ptk