Hi,

If you want some help debugging your script, the more effective way
would be to send us a code sample, by simplifying your original
script. Then I could easily make the necessary changes to make it
work.

In the meantime, you may destroy a widget an recreate it. Just close
the widget by calling the 'close' method. It may be useful to set the
Qt.WA_DeleteOnClose attribute for this widget, to make sure that it's
destroyed right after having been closed.

-Pierre

2013/2/7 Robin Wilson <[email protected]>:
> Hi,
>
> I'm trying to use the ArrayEditorWidget from spyderlib in my own software.
> I've got it working fairly well so far, and it has been really helpful.
> However, I've got one problem: I can't seem to work out how to replace the
> array with a new one. I have a single window application which has an
> ArrayEditorWidget, as well as various buttons and other widgets. I want to
> get one of these buttons to load a new array into the ArrayEditorWidget and
> update the display so that it is showing the new array. How should I do
> this?
>
> Replacing the data property of the ArrayEditorWidget doesn't seem to work
> properly, but I can't find any methods that I can call to do this. Is there
> a way to do this? Alternatively, if the array associated with an
> ArrayEditorWidget can't be changed while the Widget is open then is there a
> way to destroy the widget and recreate it, without having to close the
> application?
>
> Best regards,
>
> Robin Wilson
> www.rtwilson.com/academic
>
> --
> You received this message because you are subscribed to the Google Groups
> "spyder" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/spyderlib?hl=en.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"spyder" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/spyderlib?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to