Sign up ×
Mathematica Stack Exchange is a question and answer site for users of Mathematica. It's 100% free, no registration required.

I'm trying to create a wizard that enables the user to choose between different shaft components. At the same time, I need a flag to be 1 if he chooses a bearing and 0 otherwise. I extended the example code from one of the GUIKit` help pages which you can find here:

ref = GUIRun[
  Widget["WizardFrame", {
    "wizard" -> Widget["Wizard", {
       "title" -> "Shaft sections",
       "pages" -> {
         Widget["WizardPage", {
           "navigationNames" -> {"Next"},
           "title" -> "Select the main feature of this section: ",
           "content" -> Widget["Panel", {Widget["WizardHTMLPanel"]

                Dynamic[flag[1]], {0 -> coupling, 0 -> shoulder, 
                 1 -> bearing, 0 -> gear, 0 -> pulley}]

The program says that the GUI definition contains invalid content. Help??

share|improve this question
Hello user13809, what version of Mathematica are you using? – Kuba Apr 18 '14 at 20:26
the latest.. 9.0 – naderistics Apr 18 '14 at 20:27
I don't think you can use PopupMenu, which is not part of GUIKit, but belongs to the newer dynamic GUI tools that first appeared in V.6. I think GUIKit uses Java for its widgets, but the new GUI widgets are native to Mathematica. They can not be intermixed, at least not casually. – m_goldberg Apr 18 '14 at 23:07

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.