Discussion:
[guidata/guiqwt] problem with ChoiceItem
lafarigoule
2011-03-28 08:09:22 UTC
Permalink
hello,

when using a callback with a ButtonItem, I cant retrieve item from a
ChoiceItem in the callback function....
can you hel me ?
Patrick
Pierre Raybaut
2011-04-06 10:21:28 UTC
Permalink
The callback function of the ButtonItem has the instance of the
dataset, but the widgets shown at screen are not synchronized
automatically with the dataset object, for performance/simplicity
reasons. So it's not possible to retrieve this value except if you are
using the DataSetShowGroupBox/DataSetEditGroupBox in your application:
then it will be possible to update the dataset from the values shown
at screen by calling the DataSetShowGroupBox/DataSetEditGroupBox
instance's "set" method before retrieving the item's value.

-Pierre
Post by lafarigoule
hello,
when using a callback with a ButtonItem, I cant retrieve item from a
ChoiceItem in the callback function....
can you hel me ?
Patrick
Loading...