Tk Library Source Code

View Ticket
Login
Ticket UUID: 620103
Title: Bug in Button armcommand
Type: Bug Version: None
Submitter: nobody Created on: 2002-10-08 07:31:46
Subsystem: bwidget Assigned To: hobbs
Priority: 5 Medium Severity:
Status: Closed Last Modified: 2002-10-15 03:43:55
Resolution: Fixed Closed By: hobbs
    Closed on: 2002-10-14 20:43:55
Description:
See the following script:

puts [package require BWidget]
Button .b -armcommand "puts ARMCOMMAND"
pack .b


By pressing the button you get the following error 
message:

can't read "pathopt(-repeatdelay)": no such element in 
array
can't read "pathopt(-repeatdelay)": no such element in 
array
    while executing
"set pathopt($option)"
    (procedure "Widget::getMegawidgetOption" line 4)
    invoked from within
"Widget::getMegawidgetOption $path -repeatdelay"
    (procedure "Button::_press" line 10)
    invoked from within
"Button::_press .b"
    (command bound to event)


I'm using bwidget version 1.3.1 together with tcl/tk 8.4.0.

I have the same error with bwidget 1.4.1, but not with 
bwidget 1.2.1
User Comments: hobbs added on 2002-10-15 03:43:55:
Logged In: YES 
user_id=72656

fixed in 1.5 - -repeatdelay and -repeatinterval are now core 
options to the button, so they have to be "removed" in the 
BWidgets sense.