Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2005
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*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 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


  • 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