X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/9377fc0de209ddea2c486732eafec1b50f1a0dbe..b0d8bfa6cd4042d3ea8680ad0145f79e3cb15268:/wxPython/wx/tools/XRCed/panel.py diff --git a/wxPython/wx/tools/XRCed/panel.py b/wxPython/wx/tools/XRCed/panel.py index 67b00f40e1..785cca2c87 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 @@ -272,13 +272,13 @@ class PropPage(ParamPage): self.box = wxStaticBox(self, -1, label) self.box.SetFont(g.labelFont()) topSizer = wxStaticBoxSizer(self.box, wxVERTICAL) - sizer = wxFlexGridSizer(len(xxx.allParams), 2, 1, 1) + sizer = wxFlexGridSizer(len(xxx.allParams), 2, 0, 1) sizer.AddGrowableCol(1) if xxx.hasName: label = wxStaticText(self, -1, 'XML ID:', size=(LABEL_WIDTH,-1)) control = ParamText(self, 'XML_name', 200) sizer.AddMany([ (label, 0, wxALIGN_CENTER_VERTICAL), - (control, 0, wxALIGN_CENTER_VERTICAL | wxBOTTOM | wxGROW, 5) ]) + (control, 0, wxALIGN_CENTER_VERTICAL | wxBOTTOM | wxGROW, 10) ]) self.controlName = control for param in xxx.allParams: present = xxx.params.has_key(param) @@ -345,7 +345,7 @@ class StylePage(ParamPage): box = wxStaticBox(self, -1, label) box.SetFont(g.labelFont()) topSizer = wxStaticBoxSizer(box, wxVERTICAL) - sizer = wxFlexGridSizer(len(xxx.styles), 2, 1, 1) + sizer = wxFlexGridSizer(len(xxx.styles), 2, 0, 1) sizer.AddGrowableCol(1) for param in xxx.styles: present = xxx.params.has_key(param)