Re: [julia-users] Re: set parent to None in PySide

2014-03-25 Thread Samuele Carcagno
On 25/03/14 01:25, j verzani wrote: I don't really know. This of course is an issue, as it likely won't get garbage collected once removed. I thought setting the parent to `nothing` would work, but it doesn't. If you find something that does work please let me know. thanks, setting the parent

[julia-users] Re: set parent to None in PySide

2014-03-25 Thread Steven G. Johnson
The analogue of Python's None in Julia is nothing (which will get converted to None on the Python side), whereas None in Julia is a completely different object (an empty type union, in fact). So, try just passing nothing (without the quotes) instead of None.

[julia-users] Re: set parent to None in PySide

2014-03-25 Thread Steven G. Johnson
On Tuesday, March 25, 2014 5:12:30 PM UTC-4, Steven G. Johnson wrote: So, try just passing nothing instead of None. Oh, nevermind, I see that you did that. Regarding whether it is garbage-collected, you have to make sure that you aren't holding any references to the object. (Once a Python

[julia-users] Re: set parent to None in PySide

2014-03-24 Thread j verzani
I don't really know. This of course is an issue, as it likely won't get garbage collected once removed. I thought setting the parent to `nothing` would work, but it doesn't. If you find something that does work please let me know. On Monday, March 24, 2014 9:00:13 PM UTC-4, Samuele Carcagno