import sys
from PySide import QtGui
from ibl_stuff.gui.explorer import Explorer


def show():
    w = Explorer(parent=QtGui.QApplication.activeWindow())
    w.show()

if __name__ == "__main__":
    app = QtGui.QApplication(sys.argv)
    w = Explorer()
    w.show()
    sys.exit(app.exec_())

@@ -95,28 +95,17 @@
     
-w = Explorer(
 parent
-=
+ = 
 QtGu
@@ -133,16 +133,194 @@
 Window()
+%0A    w = None%0A    for child in parent.children():%0A        if not isinstance(child, Explorer):%0A            continue%0A        w = child%0A    if w is None:%0A        w = Explorer(parent
 )%0A    w.

fix memory leak reusing Explorer