GUIkit problem
- To: mathgroup at smc.vnet.net
- Subject: [mg56674] GUIkit problem
- From: babazaroni at gmail.com
- Date: Tue, 3 May 2005 05:26:25 -0400 (EDT)
- Sender: owner-wri-mathgroup at wolfram.com
Hello, I'm new to Mathematica and GUIkit and wonder why the following expressions produce a GUI with only the first label (Hello World1!). Needs["GUIKit`"]; label1 := Widget["Label", {"text" -> "Hello World1!"}] label2 := Widget["Label", {"text" -> "Hello World2!"}] newlist = {label1} Append[newlist, label2] HelloWorld[] := GUIRunModal[ Widget["Panel", newlist]] HelloWorld[] This code below works correctly, but I need to dynamically add labels. Needs["GUIKit`"]; mine1 := Widget["Label", {"text" -> "Hello World1!"}] mine2 := Widget["Label", {"text" -> "Hello World2!"}] HelloWorld[] := GUIRunModal[ Widget["Panel", {label1,label2}]] HelloWorld[] Thanks, Baba
- Follow-Ups:
- Re: GUIkit problem
- From: "murphee (Werner Schuster)" <werner.schuster@netway.at>
- Re: GUIkit problem