]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/wx/lib/inspection.py
more cvs to svn script changes
[wxWidgets.git] / wxPython / wx / lib / inspection.py
index 38137ea606232a267a9857a17019e7fd2c458ce7..e0eca716756d5f80ef0f789108a1a2343fe9993b 100644 (file)
@@ -221,6 +221,8 @@ class InspectionFrame(wx.Frame):
 
     def OnClose(self, evt):
         self.SaveSettings(self.config)
+        self.mgr.UnInit()
+        del self.mgr
         evt.Skip()
         
 
@@ -509,6 +511,8 @@ class InspectionInfoPanel(wx.stc.StyledTextCtrl):
         st.append(self.Fmt('name',       obj.GetName()))
         st.append(self.Fmt('class',      obj.__class__))
         st.append(self.Fmt('bases',      obj.__class__.__bases__))
+        if hasattr(obj, 'this'):
+            st.append(self.Fmt('this',      repr(obj.this)))
         st.append(self.Fmt('id',         obj.GetId()))
         st.append(self.Fmt('style',      obj.GetWindowStyle()))
         st.append(self.Fmt('pos',        obj.GetPosition()))
@@ -533,6 +537,9 @@ class InspectionInfoPanel(wx.stc.StyledTextCtrl):
 
 
     def FmtSizerItem(self, obj):
+        if obj is None:
+            return ['SizerItem: None']
+        
         st = ['SizerItem:']
         st.append(self.Fmt('proportion', obj.GetProportion()))
         st.append(self.Fmt('flag',
@@ -556,6 +563,8 @@ class InspectionInfoPanel(wx.stc.StyledTextCtrl):
     def FmtSizer(self, obj):
         st = ['Sizer:']
         st.append(self.Fmt('class',      obj.__class__))
+        if hasattr(obj, 'this'):
+            st.append(self.Fmt('this',      repr(obj.this)))
         st.append(self.Fmt('pos',        obj.GetPosition()))
         st.append(self.Fmt('size',       obj.GetSize()))
         st.append(self.Fmt('minsize',    obj.GetMinSize()))