[Kommander-devel] Flaw in new parser?

Michal Rudolf mrudolf at kdewebdev.org
Wed Jul 13 23:26:17 EDT 2005


Eric Laffoon,  środa, 13 lipca 2005 22:10:
>Michal,
>maybe you can give me some input here? I was working with a dialog using the
>new parser and I wanted to create a conditional structure based on the state
>of radio buttons. Because the group can have a checkbox we can't check it's
>value, though it seems still desirable to work around. The next logical
> thing is something like...
>if (radio1.text == true)
>  //do something
>endif
>The problem here is that the text attribution returns something like "Do
>&Something". Not only does this suck for managing it... it doesn't reflect
>state. We can set, but I see no way to check for set or unset, at least in a
>quick look. I could be making a fool of myself. ;-)
>Unless I'm missing something it looks like using radio buttons might be
> rather difficult with the new parser.
What about something like that?

if RadioButton1.checked then
   LineEdit1.setText("Hello")
elseif RadioButton2.checked then
   LineEdit1.setText("Hi")
endif
-- 
Michal Rudolf


More information about the Kommander-devel mailing list