parameters: (self)
docstring: Do the panels layout
docstring_summary: Do the panels layout
docstring_tokens: Do the panels layout
function: def _DoLayout(self):
          """Do the panels layout"""
          msizer = wx.BoxSizer(wx.HORIZONTAL)
          msizer.AddMany([(wx.StaticText(self, label=_("Editor Mode") + u": "),
                           0, wx.ALIGN_CENTER_VERTICAL), ((5, 5), 0),
                          (ExChoice(self, ed_glob.ID_PREF_MODE,
                                    choices=['CODE', 'DEBUG', 'VERBOSE DEBUG'],
                                    default=Profile_Get('MODE')),
                            0, wx.ALIGN_CENTER_VERTICAL)])
  
          psizer = wx.BoxSizer(wx.HORIZONTAL)
          psizer.AddMany([(wx.StaticText(self, label=_("Printer Mode") + u": "),
                           0, wx.ALIGN_CENTER_VERTICAL), ((5, 5), 0),
                          (ExChoice(self, ed_glob.ID_PRINT_MODE,
                                    choices=GetPrintModeStrings(),
                                    default=Profile_Get('PRINT_MODE')),
                           0, wx.ALIGN_CENTER_VERTICAL)])
  
          reporter_cb = wx.CheckBox(self, ed_glob.ID_REPORTER,
                                    _("Disable Error Reporter"))
          reporter_cb.SetValue(not Profile_Get('REPORTER'))
          sess_cb = wx.CheckBox(self, ed_glob.ID_SESSION, _("Load Last Session"))
          sess_cb.SetValue(Profile_Get('SAVE_SESSION', default=False))
          sess_cb.SetToolTipString(_("Load files from last session on startup"))
          splash_cb = wx.CheckBox(self, ed_glob.ID_APP_SPLASH,
                                  _("Show Splash Screen"))
          splash_cb.SetValue(Profile_Get('APPSPLASH'))
  
          # Only enable update option if user has access to install directory
          isadmin = os.access(ed_glob.CONFIG['INSTALL_DIR'], os.R_OK|os.W_OK)
          if isadmin:
              chk_update = wx.CheckBox(self, ed_glob.ID_PREF_CHKUPDATE,
                                       _("Check for updates on startup"))
              chk_update.SetValue(Profile_Get('CHECKUPDATE'))
  
          # Locale
          lsizer = wx.BoxSizer(wx.HORIZONTAL)
          lsizer.AddMany([(wx.StaticText(self, label=_("Language") + u": "),
                           0, wx.ALIGN_CENTER_VERTICAL), ((5, 5), 0),
                          (ed_i18n.LangListCombo(self, ed_glob.ID_PREF_LANG,
                                                 Profile_Get('LANG')),
                           0, wx.ALIGN_CENTER_VERTICAL)])
  
          # Layout items
          sizer = wx.FlexGridSizer(11, 2, 5, 5)
          sizer.AddMany([((10, 10), 0), ((10, 10), 0),
                         (wx.StaticText(self,
                          label=_("Startup Settings") + u": "),
                          0, wx.ALIGN_CENTER_VERTICAL), (msizer, 0),
                         ((5, 5),), (psizer, 0),
                         ((5, 5),), (reporter_cb, 0),
                         ((5, 5),), (sess_cb, 0),
                         ((5, 5),), (splash_cb, 0)])
  
          if isadmin:
              sizer.AddMany([((5, 5),), (chk_update, 0)])
  
          sizer.AddMany([((5, 5),), ((5, 5),),
                         (wx.StaticText(self, label=_("Locale Settings") + u": "),
                          0, wx.ALIGN_CENTER_VERTICAL), (lsizer, 0),
                         ((10, 10), 0)])
  
          msizer = wx.BoxSizer(wx.HORIZONTAL)
          msizer.AddMany([((10, 10), 0), (sizer, 1, wx.EXPAND), ((10, 10), 0)])
          self.SetSizer(msizer)
function_tokens: def _DoLayout ( self ) : msizer = wx . BoxSizer ( wx . HORIZONTAL ) msizer . AddMany ( [ ( wx . StaticText ( self , label = _ ( "Editor Mode" ) + u": " ) , 0 , wx . ALIGN_CENTER_VERTICAL ) , ( ( 5 , 5 ) , 0 ) , ( ExChoice ( self , ed_glob . ID_PREF_MODE , choices = [ 'CODE' , 'DEBUG' , 'VERBOSE DEBUG' ] , default = Profile_Get ( 'MODE' ) ) , 0 , wx . ALIGN_CENTER_VERTICAL ) ] ) psizer = wx . BoxSizer ( wx . HORIZONTAL ) psizer . AddMany ( [ ( wx . StaticText ( self , label = _ ( "Printer Mode" ) + u": " ) , 0 , wx . ALIGN_CENTER_VERTICAL ) , ( ( 5 , 5 ) , 0 ) , ( ExChoice ( self , ed_glob . ID_PRINT_MODE , choices = GetPrintModeStrings ( ) , default = Profile_Get ( 'PRINT_MODE' ) ) , 0 , wx . ALIGN_CENTER_VERTICAL ) ] ) reporter_cb = wx . CheckBox ( self , ed_glob . ID_REPORTER , _ ( "Disable Error Reporter" ) ) reporter_cb . SetValue ( not Profile_Get ( 'REPORTER' ) ) sess_cb = wx . CheckBox ( self , ed_glob . ID_SESSION , _ ( "Load Last Session" ) ) sess_cb . SetValue ( Profile_Get ( 'SAVE_SESSION' , default = False ) ) sess_cb . SetToolTipString ( _ ( "Load files from last session on startup" ) ) splash_cb = wx . CheckBox ( self , ed_glob . ID_APP_SPLASH , _ ( "Show Splash Screen" ) ) splash_cb . SetValue ( Profile_Get ( 'APPSPLASH' ) ) # Only enable update option if user has access to install directory isadmin = os . access ( ed_glob . CONFIG [ 'INSTALL_DIR' ] , os . R_OK | os . W_OK ) if isadmin : chk_update = wx . CheckBox ( self , ed_glob . ID_PREF_CHKUPDATE , _ ( "Check for updates on startup" ) ) chk_update . SetValue ( Profile_Get ( 'CHECKUPDATE' ) ) # Locale lsizer = wx . BoxSizer ( wx . HORIZONTAL ) lsizer . AddMany ( [ ( wx . StaticText ( self , label = _ ( "Language" ) + u": " ) , 0 , wx . ALIGN_CENTER_VERTICAL ) , ( ( 5 , 5 ) , 0 ) , ( ed_i18n . LangListCombo ( self , ed_glob . ID_PREF_LANG , Profile_Get ( 'LANG' ) ) , 0 , wx . ALIGN_CENTER_VERTICAL ) ] ) # Layout items sizer = wx . FlexGridSizer ( 11 , 2 , 5 , 5 ) sizer . AddMany ( [ ( ( 10 , 10 ) , 0 ) , ( ( 10 , 10 ) , 0 ) , ( wx . StaticText ( self , label = _ ( "Startup Settings" ) + u": " ) , 0 , wx . ALIGN_CENTER_VERTICAL ) , ( msizer , 0 ) , ( ( 5 , 5 ) , ) , ( psizer , 0 ) , ( ( 5 , 5 ) , ) , ( reporter_cb , 0 ) , ( ( 5 , 5 ) , ) , ( sess_cb , 0 ) , ( ( 5 , 5 ) , ) , ( splash_cb , 0 ) ] ) if isadmin : sizer . AddMany ( [ ( ( 5 , 5 ) , ) , ( chk_update , 0 ) ] ) sizer . AddMany ( [ ( ( 5 , 5 ) , ) , ( ( 5 , 5 ) , ) , ( wx . StaticText ( self , label = _ ( "Locale Settings" ) + u": " ) , 0 , wx . ALIGN_CENTER_VERTICAL ) , ( lsizer , 0 ) , ( ( 10 , 10 ) , 0 ) ] ) msizer = wx . BoxSizer ( wx . HORIZONTAL ) msizer . AddMany ( [ ( ( 10 , 10 ) , 0 ) , ( sizer , 1 , wx . EXPAND ) , ( ( 10 , 10 ) , 0 ) ] ) self . SetSizer ( msizer )