Tk Library Source Code

View Ticket
Login
Ticket UUID: 932029
Title: Cannot have space in pathname of combobox (FIX SUPPLIED)
Type: Bug Version: None
Submitter: jaspert Created on: 2004-04-08 21:03:22
Subsystem: bwidget Assigned To: damonc
Priority: 5 Medium Severity:
Status: Closed Last Modified: 2004-04-22 04:44:17
Resolution: Fixed Closed By: hobbs
    Closed on: 2004-04-21 21:44:17
Description:
An error occurs if you try to create a combobox with a
space in its pathname

Here are the changes I made to get it working, please
patch the next release, they look fairly harmless...

$ diff BWidget-1.7.0/entry.tcl entry.tcl
140c140
<       "return \[Entry::_path_command $path \$cmd
\$args\]"
---
>       "return \[Entry::_path_command [list $path]
\$cmd \$args\]"
159c159
<     foreach $vars [eval Widget::hasChangedX $path
$opts] { break }
---
>     foreach $vars [eval {Widget::hasChangedX $path}
$opts] { break }
$ diff BWidget-1.7.0/arrow.tcl arrow.tcl
90c90
<     eval canvas $path.c $submaps(.c)
---
>     eval {canvas $path.c} $submaps(.c)

Cheers
User Comments: hobbs added on 2004-04-22 04:44:17:
Logged In: YES 
user_id=72656

corrected 2004-04-21