Message Boards Message Boards

GROUPS:

Basic user interface application

Posted 1 month ago
383 Views
|
2 Replies
|
0 Total Likes
|

Nowadays I am working on Mathematica software. I would like to make a user interfaced application by using GUIKit library. In my application there is two fields , one is input argument field the other one is output field. There is also one button to text input value to the output field. Unfortunetaly I couldn't get the input field value. I am attaching my script codes to here. What should I write to "?????" field ?

Needs["GUIKit`"]
ref = GUIRun[
  Widget["Panel",
   {Widget["Label", {"text" -> "Enter the Inputs"},
        WidgetLayout -> {"Alignment" -> Center}, 
     Name -> "mainLabel"],
    {Widget["Label", {"text" -> "Temperature:"}],
     WidgetAlign[],
     Widget["TextField", {"columns" -> 20 },Name->"temparg"],
     WidgetAlign[],
     Widget["Label", {"text" -> "K"}]},

     {Widget["Label", {"text" -> "Value:"},
     WidgetLayout-> {"Alignment" -> Left}],
     WidgetAlign[],
     Widget["TextField",{"preferredSize"->Widget["Dimension",{"width"->150,"height"->20}],"editable"->False},
     WidgetLayout->{"Alignment"->Right},
     Name -> "get"]},

     {WidgetAlign[],
     Widget["Button", {

     "text" -> "Get Results",
     BindEvent["Action",Script[SetPropertyValue[{"get","text"},??????]
     ]]
     },
     WidgetLayout-> {"Alignment" -> Right}]
    } 
     }
     ]]
2 Replies

Welcome to Wolfram Community! Please make sure you know the rules: https://wolfr.am/READ-1ST

The rules explain how to format your code properly. Posting code Images doesn't help other members to copy your code. Please EDIT your post and make sure code blocks start on a new paragraph and look framed and colored like this.

int = Integrate[1/(x^3 - 1), x];
Map[Framed, int, Infinity]

You can also embed notebook or attach notebook.

enter image description here

Posted 1 month ago

Is there a reason for using GUIKit? It is no longer supported.

Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract