Tk Library Source Code

View Ticket
Login
Ticket UUID: 3160150
Title: invalid command name "SpinBox::config"
Type: Bug Version: None
Submitter: tombert Created on: 2011-01-17 18:04:54
Subsystem: tklib :: cursor Assigned To: andreas_kupries
Priority: 5 Medium Severity:
Status: Closed Last Modified: 2011-01-19 01:18:26
Resolution: Fixed Closed By: andreas_kupries
    Closed on: 2011-01-18 18:18:26
Description:
Error when doing:

package re BWidget
SpinBox .sb -text test
package re cursor
cursor::propagate . watch

thx
User Comments: andreas_kupries added on 2011-01-19 01:18:26:

allow_comments - 1

Fixed in tklib head.

oehhar added on 2011-01-18 04:08:10:
By E-Mail:
Andreas Kupries:
My opinion: tklib::cursor. It should not use shorthands.
Extending bwidgets to support shorthands can/may come later. 
Jeffrey Hobbs:
Both.  BWidgets doesn't actually support subcommand shorthand, which is
IMO a misfeature because all Tk widgets do support it.  However,
strictly speaking, shorthand shouldn't be used for "permanent" code, so
tklib::cursor is what needs to be updated first.

Harald:
Ok, subcommand shorthand is an enhancement request for BWidget.
It is not in my implementation plans at the moment, patches welcome.

I will reassign the bug report to TkLib

oehhar added on 2011-01-18 03:48:13:
Well, the error message tells, that there is no method "config" within a SpinBox.
This is correct. It is called "configure".
And the "cursor" package uses "config" which might be a bug there.

I am not the person to clarify this. Jeff or Andreas, may you enlight me, where to fix this best ?

I would favor to patch the cursor package which is clearer IMHO.

While waiting, please replace "config" be "configure" in line 63 of cursor.tcl

Regards,
Harald