Re: GUIkit problem
- To: mathgroup at smc.vnet.net
- Subject: [mg56684] Re: [mg56674] GUIkit problem
- From: "murphee (Werner Schuster)" <werner.schuster at netway.at>
- Date: Wed, 4 May 2005 00:32:49 -0400 (EDT)
- References: <200505030926.FAA25658@smc.vnet.net>
- Sender: owner-wri-mathgroup at wolfram.com
babazaroni at gmail.com wrote: > label1 := Widget["Label", {"text" -> "Hello World1!"}] > label2 := Widget["Label", {"text" -> "Hello World2!"}] > newlist = {label1} > Append[newlist, label2] This is the problem: Append *returns* a new List with label2 appended, the original newlist is not modified. If you change that line to, for instance: newlist = Append[newlist, label2] It might be better (if you want to keep newlist) to assign this to a new symbol, ie allMyLabels= Append[newlist, label2] HelloWorld[] := GUIRunModal[ Widget["Panel", allMyLabels]] murphee -- Werner Schuster (murphee) Blog @ http://www.jroller.com/page/murphee
- References:
- GUIkit problem
- From: babazaroni@gmail.com
- GUIkit problem