MathGroup Archive 2007

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

Search the Archive

Re: GUIKit

  • To: mathgroup at smc.vnet.net
  • Subject: [mg80714] Re: GUIKit
  • From: dh <dh at metrohm.ch>
  • Date: Thu, 30 Aug 2007 02:27:43 -0400 (EDT)
  • References: <fb3a0h$qgh$1@smc.vnet.net>


Hi John,

it is not quite clear to me what you mean by "evaluate the entire 

notebook". So far your specified action is Print[1]. Usually you would 

define a function that does what you want and call this function instead 

of Print.

hope this helps, Daniel



John Wallbank wrote:

> Hi,

> I have been trying to use the GUIKit to create a GUI that first gives mathematica a single value (for the change in parameters when using parametricplot) and then tells mathematica to evaluate the entire notebook. Does any one know how to do this? So far I've created the GUI below but I don't really know how to get it to tell mathematica to do things:

> 

> Needs["GUIKit`"]

> 

> GUIRunModal[Widget["Panel", {

>         

>         {Widget["Label", {"text" -> "Select resolution :

>         "}], Widget["ComboBox", {"items" -> {"Lowest", "Low", "

>                 Medium", "High", "Highest"}, "editable" -> False}, 

>           Name -> MyRes]},

>         

>         Widget["Button", {"text" -> "Run Animation"}, Name -> "myButton"],

>         

>         BindEvent[{"myButton", "action"},

>            Script[

>             

>             

>             resol = PropertyValue[{"MyRes", "selectedItem"}];

>             

>             test = Switch[resol,

> "Lowest", 1,

> "Low", 2,

> "Medium", 3,

>                 "High", 4,

>                 "Highest", 5,

>                 _, 3

>                 

>                 

>                 ];

>             Print[test]

>               

>               CloseGUIObject[]

>             

>             ]]}]];

> 

> Thanks 

> John

> 

> PS; It would also be helpfull to know how to create a button to bring the GUI object up.

> 




  • Prev by Date: GraphicsGrid bug and work around
  • Next by Date: Re: Re: Re: Another question on lists
  • Previous by thread: GUIKit
  • Next by thread: How to disable/enable some specific TabView tabs and enable/disable the rest?