X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/a3c8bbc1b46d4101f1a620f2d7a2e85381d8bbe0..46ae103b9f08fc4e447d16a6a92b03cf55ee3189:/wxPython/wx/tools/XRCed/panel.py diff --git a/wxPython/wx/tools/XRCed/panel.py b/wxPython/wx/tools/XRCed/panel.py index 902c0612f5..407888f52c 100644 --- a/wxPython/wx/tools/XRCed/panel.py +++ b/wxPython/wx/tools/XRCed/panel.py @@ -72,7 +72,7 @@ class Panel(wxNotebook): # First page # Remove current objects and sizer sizer = self.ResetPage(self.page1) - if not xxx or (not xxx.allParams and not xxx.hasName): + if not xxx or (not xxx.allParams and not xxx.hasName and not xxx.hasChild): if g.tree.selection: sizer.Add(wxStaticText(self.page1, -1, 'This item has no properties.')) else: # nothing selected @@ -171,8 +171,6 @@ class Panel(wxNotebook): class ParamPage(wxPanel): def __init__(self, parent, xxx): wxPanel.__init__(self, parent, -1) - self.SetBackgroundColour(parent.GetBackgroundColour()) - self.SetForegroundColour(parent.GetForegroundColour()) self.xxx = xxx # Register event handlers for id in paramIDs.values():