ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> perl-tk
perl-tk
RE: State in Button Widget
by Amit Didwania other posts by this author
Jul 27 2007 6:36AM messages near this date
Re: State in Button Widget | Unitialized errors in FileSelect.pm
SOURCE 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: eserte@[...].de
[mailto:eserte@[...].de] On Behalf Of Slaven Rezic
Sent: Friday, July 20, 2007 5:36 AM
To: Didwania Amit (IFIN COM DC DAT DF)
Cc: ptk@[...].edu
Subject: Re: State in Button Widget

<Amit.Didwania@[...].com>  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
ptk@[...].edu
https://mailman.stanford.edu/mailman/listinfo/ptk
Thread:
Steve Waltner
Jack D
Steve Waltner
Amit Didwania
Slaven Rezic
Amit Didwania
Amit Didwania

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved