logo       

RE: State in Button Widget: msg#00027

Subject: RE: State in Button Widget
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@xxxxxxxxxxxxxxxxxxxxxxx
[mailto:eserte@xxxxxxxxxxxxxxxxxxxxxxx] On Behalf Of Slaven Rezic
Sent: Friday, July 20, 2007 5:36 AM
To: Didwania Amit (IFIN COM DC DAT DF)
Cc: ptk@xxxxxxxxxxxxxxxxxxxx
Subject: Re: State in Button Widget

<Amit.Didwania@xxxxxxxxxxxx> 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@xxxxxxxxxxxxxxxxxx
https://mailman.stanford.edu/mailman/listinfo/ptk




<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
science.linguis...    culture.sf.lite...    video.mplayer.c...    yellowdog.gener...    ietf.rfc822/199...    emacs.help/2002...    redhat.release....    kernel.speakup/...    java.openejb.de...    debian.devel.gt...    xfree86.newbie/...    bug-tracking.ma...    pam/2003-05/msg...    games.devel.ope...    user-groups.lin...    music.pancham/2...    network.mq.deve...    web.html.genera...    arklinux.bugs/2...    linux.ecasound/...    qnx.openqnx.dev...    org.user-groups...    file-systems.sf...    trustix.contrib...   
Home | blog view | USPTO Patent Archive | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe