#80 Leading period for Tcl/Tk pathnames should not be required

closed-fixed
Andrew Ross
None
5
2010-01-14
2010-01-05
Alan W. Irwin
No

examples/c/x01c -dev tk

gives the error message

bad window path name "examples/c/x01c"

while

./examples/c/x01c -dev tk

works fine.

According to Andrew Ross

"This is fallout from my recent changes to the way window titles are
handled. The tk bit worked before due to a fudge. This does not sit well
with centralising the window title. "

Discussion

  • Andrew Ross
    Andrew Ross
    2010-01-14

    • status: open --> closed-fixed
     
  • Andrew Ross
    Andrew Ross
    2010-01-14

    This bug is now fixed. The problem is that tk widget names have strict rules which require an initial period. The tk driver now correctly prepends this for all names,

    There are some issues with the implementation. Tk does not allow a period, a space or an initial upper case letter in the name. periods and spaces are converted to underscores and any initial upper case letter is converted to lower case. This is different to all other drivers, but is a tk "feature" as far as I can tell.