Karina
Member
(edited to add that this is actually a reply on how Snarly's "Scene Fixer" script works. I didn't see your other replies until after I posted mine)
I think the trick is with the nesting of the classes, and calling them from the main progranm routine.
Look at line #1941 pp:
It's where he calls the various classes and defines the parameters of the parent panel.
The solution to how he closes the panel is in the class "mainFrame()":
Line 1129 pp, "def __del__(self):" (just ignore the "clearEventCallback() if you don't need it)
I haven't seen such a method before (and obviously my way of simply using "self.Destroy()" seems to work too).
But maybe that's a solution if you have several panels declared?
Actually, I don't know. My Python-foo yet isn't mighty enough.
However, it might be worth analyzing the script to find out how he did it.
K
I think the trick is with the nesting of the classes, and calling them from the main progranm routine.
Look at line #1941 pp:
It's where he calls the various classes and defines the parameters of the parent panel.
The solution to how he closes the panel is in the class "mainFrame()":
Line 1129 pp, "def __del__(self):" (just ignore the "clearEventCallback() if you don't need it)
I haven't seen such a method before (and obviously my way of simply using "self.Destroy()" seems to work too).
But maybe that's a solution if you have several panels declared?
Actually, I don't know. My Python-foo yet isn't mighty enough.
However, it might be worth analyzing the script to find out how he did it.
K