Workaround corner case where a widget can have a containing sizer, but

no sizer item.  (The static box in a StaticBoxSizer)


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@45884 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
2007-05-08 17:50:15 +00:00
parent d67347f960
commit f24fd27a8e

View File

@@ -533,6 +533,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',