parameters: (self)
docstring: Layout all the controls
          @note: Do not call this after __init__
docstring_summary: Layout all the controls
          @note: Do not call this after __init__
docstring_tokens: Layout all the controls @note : Do not call this after __init__
function: def _DoLayout(self):
          """Layout all the controls
          @note: Do not call this after __init__
  
          """
          sizer = wx.BoxSizer(wx.VERTICAL)
  
          # Syntax Settings
          syn_cb = wx.CheckBox(self, ed_glob.ID_SYNTAX, _("Syntax Highlighting"))
          syn_cb.SetValue(Profile_Get('SYNTAX'))
          ss_lst = util.GetResourceFiles(u'styles', get_all=True, title=False)
          ss_lst = [sheet for sheet in ss_lst if not sheet.startswith('.')]
          syntheme = ExChoice(self, ed_glob.ID_PREF_SYNTHEME,
                              choices=sorted(ss_lst),
                              default=Profile_Get('SYNTHEME', 'str'))
          line = wx.StaticLine(self, size=(-1, 2))
          lsizer = wx.BoxSizer(wx.VERTICAL)
          lsizer.Add(line, 0, wx.EXPAND)
          lst_lbl = wx.StaticText(self, label=_("Filetype Associations") + u": ")
  
          # Layout the controls
          hsizer = wx.BoxSizer(wx.HORIZONTAL)
          hsizer.AddMany([(syn_cb, 0, wx.ALIGN_LEFT|wx.ALIGN_CENTER_VERTICAL),
                          ((5, 5), 1, wx.EXPAND),
                          (wx.StaticText(self, label=_("Color Scheme") + u": "),
                          0, wx.ALIGN_LEFT|wx.ALIGN_CENTER_VERTICAL),
                          (syntheme, 0, wx.EXPAND), ((5, 5), 0)])
  
          sizer.AddMany([((15, 15), 0), (hsizer, 0, wx.EXPAND),
                         ((5, 5), 0), (lsizer, 0, wx.EXPAND),
                         ((15, 15), 0), (lst_lbl, 0, wx.ALIGN_LEFT)])
  
          hsizer2 = wx.BoxSizer(wx.HORIZONTAL)
          hsizer2.AddMany([((5, 5), 0), (self._elist, 1, wx.EXPAND), ((5, 5), 0)])
  
          default_btn = wx.Button(self, wx.ID_DEFAULT, _("Revert to Default"))
          if wx.Platform == '__WXMAC__':
              default_btn.SetWindowVariant(wx.WINDOW_VARIANT_SMALL)
          sizer.AddMany([((10, 10), 0), (hsizer2, 1, wx.EXPAND), ((15, 15), 0),
                         (default_btn, 0, wx.ALIGN_LEFT), ((10, 10), 0)])
  
          msizer = wx.BoxSizer(wx.HORIZONTAL)
          msizer.AddMany([((5, 5), 0), (sizer, 1, wx.EXPAND), ((5, 5), 0)])
          self.SetSizer(msizer)
function_tokens: def _DoLayout ( self ) : sizer = wx . BoxSizer ( wx . VERTICAL ) # Syntax Settings syn_cb = wx . CheckBox ( self , ed_glob . ID_SYNTAX , _ ( "Syntax Highlighting" ) ) syn_cb . SetValue ( Profile_Get ( 'SYNTAX' ) ) ss_lst = util . GetResourceFiles ( u'styles' , get_all = True , title = False ) ss_lst = [ sheet for sheet in ss_lst if not sheet . startswith ( '.' ) ] syntheme = ExChoice ( self , ed_glob . ID_PREF_SYNTHEME , choices = sorted ( ss_lst ) , default = Profile_Get ( 'SYNTHEME' , 'str' ) ) line = wx . StaticLine ( self , size = ( - 1 , 2 ) ) lsizer = wx . BoxSizer ( wx . VERTICAL ) lsizer . Add ( line , 0 , wx . EXPAND ) lst_lbl = wx . StaticText ( self , label = _ ( "Filetype Associations" ) + u": " ) # Layout the controls hsizer = wx . BoxSizer ( wx . HORIZONTAL ) hsizer . AddMany ( [ ( syn_cb , 0 , wx . ALIGN_LEFT | wx . ALIGN_CENTER_VERTICAL ) , ( ( 5 , 5 ) , 1 , wx . EXPAND ) , ( wx . StaticText ( self , label = _ ( "Color Scheme" ) + u": " ) , 0 , wx . ALIGN_LEFT | wx . ALIGN_CENTER_VERTICAL ) , ( syntheme , 0 , wx . EXPAND ) , ( ( 5 , 5 ) , 0 ) ] ) sizer . AddMany ( [ ( ( 15 , 15 ) , 0 ) , ( hsizer , 0 , wx . EXPAND ) , ( ( 5 , 5 ) , 0 ) , ( lsizer , 0 , wx . EXPAND ) , ( ( 15 , 15 ) , 0 ) , ( lst_lbl , 0 , wx . ALIGN_LEFT ) ] ) hsizer2 = wx . BoxSizer ( wx . HORIZONTAL ) hsizer2 . AddMany ( [ ( ( 5 , 5 ) , 0 ) , ( self . _elist , 1 , wx . EXPAND ) , ( ( 5 , 5 ) , 0 ) ] ) default_btn = wx . Button ( self , wx . ID_DEFAULT , _ ( "Revert to Default" ) ) if wx . Platform == '__WXMAC__' : default_btn . SetWindowVariant ( wx . WINDOW_VARIANT_SMALL ) sizer . AddMany ( [ ( ( 10 , 10 ) , 0 ) , ( hsizer2 , 1 , wx . EXPAND ) , ( ( 15 , 15 ) , 0 ) , ( default_btn , 0 , wx . ALIGN_LEFT ) , ( ( 10 , 10 ) , 0 ) ] ) msizer = wx . BoxSizer ( wx . HORIZONTAL ) msizer . AddMany ( [ ( ( 5 , 5 ) , 0 ) , ( sizer , 1 , wx . EXPAND ) , ( ( 5 , 5 ) , 0 ) ] ) self . SetSizer ( msizer )