| Ticket UUID: | 2340320 | |||
| Title: | Entry invoke is not reachable | |||
| Type: | Bug | Version: | None | |
| Submitter: | relaxmike | Created on: | 2008-11-24 22:07:59 | |
| Subsystem: | bwidget | Assigned To: | damonc | |
| Priority: | 5 Medium | Severity: | ||
| Status: | Closed | Last Modified: | 2009-06-10 15:19:22 | |
| Resolution: | Accepted | Closed By: | oehhar | |
| Closed on: | 2009-06-10 08:19:22 | |||
| Description: |
Hi (very) Dear Tcl maintainers !
The _path_command of the Entry widget
does not take into account for the
invoke command.
() 49 % package require BWidget
1.8
() 50 % Entry .myentry
.myentry
() 52 % catch {.myentry invoke} errmsg
1
() 53 % puts $errorInfo
bad option "invoke": must be bbox, cget, configure, delete, get, icursor, index, insert, scan, selection, validate, or xview
while executing
".myentry:cmd invoke"
("eval" body line 1)
invoked from within
"eval [linsert $larg 0 $path:cmd $cmd]"
(procedure "Entry::_path_command" line 5)
invoked from within
"Entry::_path_command .myentry $cmd $args"
(procedure ".myentry" line 1)
invoked from within
".myentry invoke"
The _path_command should be updated to
proc Entry::_path_command { path cmd larg } {
if {\
[string equal $cmd "configure"] || \
[string equal $cmd "cget"] || \
[string equal $cmd "invoke"] \
} {
return [eval [linsert $larg 0 Entry::$cmd $path]]
} else {
return [eval [linsert $larg 0 $path:cmd $cmd]]
}
}
Best regards,
Michaƫl
| |||
| User Comments: |
oehhar added on 2009-06-10 15:19:22:
Comitted to cvs oehhar added on 2009-06-02 23:24:17: I confirm this bug.
Patch:
entry.tcl Line 266:
Original:
if {[string equal $cmd "configure"] || [string equal $cmd "cget"]} {
New:
if {[string equal $cmd "configure"] || [string equal $cmd "cget"] || [string equal $cmd "invoke"]} {
(this is not a standard option in tcl8.5 and thus must be treated by the BWidget mechanism)
Thank you,
Harald
| |||
Home
Blog
Docs
Downloads
Tickets
Timeline
Branches
Tags
Wiki