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:
@@ -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',
|
||||
|
Reference in New Issue
Block a user