> I'm not sure about this, but I'm pretty sure that the parent/child
> relationship can be changed by qt depending on the layout of the elements. I
> don't think it's a good idea to rely on it being set like that, especially
> because it's pretty easy to change the parent/child relationship and not
> realize that you're breaking the code that depends on a child/parent being a
> certain type of object.

Oh I see, okay this a good tip.

> how about:
> tab-browser = objreg.get('tabbed-browser', scope='window', window=self.win_id)
>
> At some point though, I think that passing the argument in might be cleaner,
> especially if you need it a lot of times.

I guess I'll go with the extra argument, plus I think I remember
Florian mentioning he wants to get rid of objreg eventually.

Thanks for your help.

Reply via email to