comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Change widget parent or duplicate widget. Is is possible?
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Change widget parent or duplicate widget. Is is possible? [message #94151] Mon, 06 February 2017 07:04 Go to next message
natha is currently offline  natha
Messages: 482
Registered: October 2007
Senior Member
Hi all!

I am using a modified version of the h5_browser and the widget creation is way too long....
This is why I was thinking in duplicating the widget tree that contains the information of the HDF5 file. It takes a lot of time to create this widget and if it could be duplicated, it would save a lot of time in future calls to the program.
Another option would be to change the widget id of the parent and destroy the entire window keeping apart the widget_tree...

Is this possible? If so, I didn't find a way to do it...
Thanks in advance for your answers, suggestions or comments!

nata
Re: Change widget parent or duplicate widget. Is is possible? [message #94152 is a reply to message #94151] Mon, 06 February 2017 08:34 Go to previous messageGo to next message
Markus Schmassmann is currently offline  Markus Schmassmann
Messages: 129
Registered: April 2016
Senior Member
On 02/06/2017 04:04 PM, nata wrote:
> I am using a modified version of the h5_browser and the widget
> creation is way too long....
> This is why I was thinking in duplicating the widget tree that
> contains the information of the HDF5 file. It takes a lot of time to
> create this widget and if it could be duplicated, it would save a lot of
> time in future calls to the program.
> Another option would be to change the widget id of the parent and
> destroy the entire window keeping apart the widget_tree...
>
> Is this possible? If so, I didn't find a way to do it...
> Thanks in advance for your answers, suggestions or comments!
While i don't know the answer to your question, i can imagine that using
the SetData Method might be used as a workaround so you don't have to
recreate the widget more than once.

I hope this helps, Markus

http://www.harrisgeospatial.com/docs/setdata_method.html
Re: Change widget parent or duplicate widget. Is is possible? [message #94153 is a reply to message #94152] Mon, 06 February 2017 08:48 Go to previous messageGo to next message
natha is currently offline  natha
Messages: 482
Registered: October 2007
Senior Member
We are talking about widgets and they must be destroyed after the user completes the action. It is like a dilog_pickfile().
The use of the method setdata does not make sense in this case.
Re: Change widget parent or duplicate widget. Is is possible? [message #94154 is a reply to message #94153] Mon, 06 February 2017 09:51 Go to previous messageGo to next message
lecacheux.alain is currently offline  lecacheux.alain
Messages: 325
Registered: January 2008
Senior Member
Le lundi 6 février 2017 17:48:23 UTC+1, nata a écrit :
> We are talking about widgets and they must be destroyed after the user completes the action. It is like a dilog_pickfile().
> The use of the method setdata does not make sense in this case.

The H5_LIST or H5_PARSE functions give you the way to (re)create the H5_browser widget content.
Cheers,
alx.
Re: Change widget parent or duplicate widget. Is is possible? [message #94155 is a reply to message #94154] Mon, 06 February 2017 09:57 Go to previous message
natha is currently offline  natha
Messages: 482
Registered: October 2007
Senior Member
I know and I already store this information to speed up things... The command that takes time and I cannot replace is:
wtree = cw_treestructure(wcol1, value=stree)

This is the command that creates the widget_tree from the HDF5 file info. That is why I need to duplicate this widget or do something similar
Thanks!
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: How to make long program keep going if error comes??
Next Topic: multiplot ytitle help

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 13:40:21 PDT 2025

Total time taken to generate the page: 0.00431 seconds