Menu

#102 tixFileEntry:OpenFile dialogtype tk_chooseDirectory

bug
open
nobody
Tix Source (67)
8
2009-03-04
2009-02-26
Mr T
No

to re-create the error, run a tixFileEntry widget with -dialogtype set to tk_chooseDirectory

first click on file (directory) chooser button works

second click to choose file (directory) does nothing

Error is on line 187 as follows:

switch -- $data(-dialogtype) tk_chooseDirectory {
set args [list -parent [winfo toplevel $w]]
if {[set initial $data(-value)] != ""} {
# LINE 187 FOLLOWS, ERROR
lappend args -initialdir $data(value)
}
set retval [eval [linsert $args 0 tk_chooseDirectory]]

Replace line 187 with the following and further clicks on button to change directory will work:
lappend args -initialdir $data(-value)
# 'value' was missing '-' preceding

Discussion

  • Mr T

    Mr T - 2009-02-26

    In CVS, the file is:
    library/FileEnt.tcl

     
  • Mr T

    Mr T - 2009-03-04
    • priority: 5 --> 8
     
  • Gary Levin

    Gary Levin - 2011-08-04

    This is still a problem. It is distributed with Python3 (tix8.4.3).

     

Log in to post a comment.

MongoDB Logo MongoDB