def _do_layout(self): STD_LAYOUT = (0, wx.LEFT | wx.RIGHT | wx.EXPAND, PADDING) container = wx.BoxSizer(wx.VERTICAL) container.AddSpacer(15) if self._positionals: container.Add(self._msg_req_args, 0, wx.LEFT | wx.RIGHT, PADDING) container.AddSpacer(5) container.Add(styling.HorizontalRule(self), *STD_LAYOUT) container.AddSpacer(20) self.AddWidgets(container, self.components.required_args, add_space=True) container.AddSpacer(10) container.AddSpacer(10) container.Add(self._msg_opt_args, 0, wx.LEFT | wx.RIGHT, PADDING) container.AddSpacer(5) container.Add(styling.HorizontalRule(self), *STD_LAYOUT) container.AddSpacer(20) flag_grids = self.CreateComponentGrid(self.components.flags, cols=3, vgap=15) general_opts_grid = self.CreateComponentGrid( self.components.general_options) container.Add(general_opts_grid, *STD_LAYOUT) container.AddSpacer(30) container.Add(flag_grids, *STD_LAYOUT) self.SetSizer(container)
def _do_layout(self): sizer = wx.BoxSizer(wx.VERTICAL) sizer.Add(self.head_panel, 0, wx.EXPAND) sizer.Add(styling.HorizontalRule(self), 0, wx.EXPAND) sizer.Add(self.config_panel, 1, wx.EXPAND) self.runtime_display.Hide() sizer.Add(self.runtime_display, 1, wx.EXPAND) sizer.Add(styling.HorizontalRule(self), 0, wx.EXPAND) sizer.Add(self.foot_panel, 0, wx.EXPAND) self.SetSizer(sizer)