Services & Resources / Wolfram Forums
MathGroup Archive
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2005

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: GUIkit problem

  • To: mathgroup at
  • Subject: [mg56684] Re: [mg56674] GUIkit problem
  • From: "murphee (Werner Schuster)" <werner.schuster at>
  • Date: Wed, 4 May 2005 00:32:49 -0400 (EDT)
  • References: <>
  • Sender: owner-wri-mathgroup at

babazaroni at 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]]

Werner Schuster (murphee)
Blog @

  • Prev by Date: Re: debugging
  • Next by Date: Re: managing order of magnitude instead of numbers
  • Previous by thread: GUIkit problem
  • Next by thread: Re: GUIkit problem