Artifacts Associated With Ticket 1664597
Ticket change [643e273e24] (rid 92724) by nobody on 2007-02-20 19:16:44:
- assignee initialized to: "dkf"
- cmimetype initialized to: "text/plain"
- comment initialized to:
A small script: ## script start namespace eval ns1 {} namespace eval ns2 {} namespace eval ns3 {} upvar 0 ns2::a ns1::a pack [button .bu1 -textvariable ::ns1::a(a)] pack [label .lab1 -textvariable ::ns1::a(a)] set ns2::a(a) ns2 upvar 0 ns3::a ns1::a set ::ns3::a(a) ns3 ## script end The text in the button is : ns2 The text in the lable is : ns2 If I move the mousepointer over the button ".bu1" the text changed to "ns3". The text in the label ".lab1" is staying "ns2". I think, both widgets should show "ns3" Regard Manfred - foundin initialized to: "None"
- is_private initialized to: "0"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "nobody"
- subsystem initialized to: "18. Commands M-Z"
- title initialized to: "upvar bug"
- type initialized to: "Bug"
Ticket change [a3b712fd7f] (rid 110088) by dgp on 2007-02-21 04:30:04:
- assignee changed to: "msofer"
- subsystem changed to: "07. Variables"
Ticket change [7d1a2626d9] (rid 97189) by dgp on 2007-02-21 04:45:40:
- assignee changed to: "dgp"
- closedate changed to: "2007-02-20T21:45:40"
- closer changed to: "dgp"
- icomment:
Logged In: YES user_id=80530 Originator: NO It appears the issues here are the details of how Tk widgets track their -textvariables. Raise this in the Tk Bug Tracker. If there's an issue specific to [upvar] that I'm not seeing, try constructing another demo script that doesn't use Tk. From what I can see in the submitted example script, [upvar] appears to be working fine. Note also that the use of array variables here is an unneeded complication. Scalar variables show the same behavior.
- login: "dgp"
- mimetype: "text/plain"
- resolution changed to: "Invalid"
- status changed to: "Pending"
- username: "dgp"
Ticket change [6d83e6b8ad] (rid 128714) by jenglish on 2007-02-21 07:31:01:
- icomment:
Logged In: YES user_id=68433 Originator: NO I get a segfault at exit when running this under wish8.4; there's clearly a bug _somewhere_. Why do you think both widgets should show "ns3"? That isn't immediately obvious.
- login: "jenglish"
- mimetype: "text/plain"
- username: "jenglish"
- icomment:
Ticket change [dc9bdbb4a0] (rid 114510) by sf-robot on 2007-03-07 10:20:09:
- closedate changed to: "2007-03-07T03:20:09"
- closer changed to: "sf-robot"
- icomment:
Logged In: YES user_id=1312539 Originator: NO This Tracker item was closed automatically by the system. It was previously set to a Pending status, and the original submitter did not respond within 14 days (the time period specified by the administrator of this Tracker).
- login: "sf-robot"
- mimetype: "text/plain"
- status changed to: "Closed"
- username: "sf-robot"