Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 49d60472df61e3abcd207e88928d4e53e1d6b007
Ticket: 2883857fffffffffffffffffffffffffffffffff
[my varname] not working with array
User & Date: beric on 2009-10-22 11:47:44
Changes

  1. assignee changed to: "dkf"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    In order to use object member variable in widget, we need to use [my varname] to get fully qualified variable name.
    But this method does not work with array index:
    
         ttk::entry $path.entry -textvariable [my varname myVar(index)]
    
    Even worth, [my varname myVar(index)] does not return an error, but an empty string.
    Also, the only working alternative is ugly:
         ttk::entry $path.entry -textvariable [my varname myVar](index)
    
    I would like to have [my varname myVar(index)] to work, or at least [my varname varName ?index?]
    
    
  4. foundin changed to: "None"
  5. is_private changed to: "0"
  6. priority changed to: "5 Medium"
  7. resolution changed to: "None"
  8. status changed to: "Open"
  9. submitter changed to: "beric"
  10. subsystem changed to: "35. TclOO Package"
  11. title changed to: "[my varname] not working with array"
  12. type changed to: "Bug"