Message Boards Message Boards

0
|
3224 Views
|
2 Replies
|
0 Total Likes
View groups...
Share
Share this post:

Basic user interface application

Posted 2 years ago

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}]
    } 
     }
     ]]
POSTED BY: Aytug PARLAKTAS
2 Replies
Posted 2 years ago

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

POSTED BY: Rohit Namjoshi

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 BY: Moderation Team
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