parameters: (self)
docstring: Do the layout of the panel
          @note: Do not call this after __init__
docstring_summary: Do the layout of the panel
          @note: Do not call this after __init__
docstring_tokens: Do the layout of the panel @note : Do not call this after __init__
function: def _DoLayout(self):
          """Do the layout of the panel
          @note: Do not call this after __init__
  
          """
          # Status text and bar
          cur_box = wx.StaticBox(self, label=_("Installed Version"))
          cur_sz = wx.StaticBoxSizer(cur_box, wx.HORIZONTAL)
          cur_sz.SetMinSize(wx.Size(150, 40))
          cur_ver = wx.StaticText(self, wx.ID_ANY,  ed_glob.VERSION)
          cur_sz.Add(cur_ver, 0, wx.ALIGN_CENTER_HORIZONTAL)
          e_update = updater.UpdateProgress(self, ed_glob.ID_PREF_UPDATE_BAR)
          upd_box = wx.StaticBox(self, label=_("Latest Version"))
          upd_bsz = wx.StaticBoxSizer(upd_box, wx.HORIZONTAL)
          upd_bsz.SetMinSize(wx.Size(150, 40))
          upd_bsz.Add(wx.StaticText(self, ID_UPDATE_MSG, _("Status Unknown")),
                      0, wx.ALIGN_CENTER_HORIZONTAL)
          upd_bsz.Layout()
  
          # Layout Controls
          statsz = wx.BoxSizer(wx.HORIZONTAL)
          statsz.AddMany([((15, 15), 0), (cur_sz, 0), ((20, 10), 1),
                          (upd_bsz, 0), ((15, 15), 0)])
  
          # Control buttons
          dl_b = wx.Button(self, ID_DOWNLOAD, _("Download"))
          dl_b.Disable()
  
          bsizer = wx.BoxSizer(wx.HORIZONTAL)
          bsizer.AddStretchSpacer()
          bsizer.Add(wx.Button(self, ID_CHECK_UPDATE, _("Check")),
                     0, wx.ALIGN_LEFT)
          bsizer.AddStretchSpacer(2)
          bsizer.Add(dl_b, 0, wx.ALIGN_RIGHT)
          bsizer.AddStretchSpacer()
  
          sizer = wx.BoxSizer(wx.VERTICAL)
          sizer.AddMany([((15, 15), 1), (statsz, 0, wx.EXPAND), ((15, 15), 0),
                         (e_update, 0, wx.EXPAND), ((15, 15), 0),
                         (bsizer, 1, wx.EXPAND|wx.ALIGN_CENTER_VERTICAL),
                         ((15, 15), 1)])
  
          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 ) : # Status text and bar cur_box = wx . StaticBox ( self , label = _ ( "Installed Version" ) ) cur_sz = wx . StaticBoxSizer ( cur_box , wx . HORIZONTAL ) cur_sz . SetMinSize ( wx . Size ( 150 , 40 ) ) cur_ver = wx . StaticText ( self , wx . ID_ANY , ed_glob . VERSION ) cur_sz . Add ( cur_ver , 0 , wx . ALIGN_CENTER_HORIZONTAL ) e_update = updater . UpdateProgress ( self , ed_glob . ID_PREF_UPDATE_BAR ) upd_box = wx . StaticBox ( self , label = _ ( "Latest Version" ) ) upd_bsz = wx . StaticBoxSizer ( upd_box , wx . HORIZONTAL ) upd_bsz . SetMinSize ( wx . Size ( 150 , 40 ) ) upd_bsz . Add ( wx . StaticText ( self , ID_UPDATE_MSG , _ ( "Status Unknown" ) ) , 0 , wx . ALIGN_CENTER_HORIZONTAL ) upd_bsz . Layout ( ) # Layout Controls statsz = wx . BoxSizer ( wx . HORIZONTAL ) statsz . AddMany ( [ ( ( 15 , 15 ) , 0 ) , ( cur_sz , 0 ) , ( ( 20 , 10 ) , 1 ) , ( upd_bsz , 0 ) , ( ( 15 , 15 ) , 0 ) ] ) # Control buttons dl_b = wx . Button ( self , ID_DOWNLOAD , _ ( "Download" ) ) dl_b . Disable ( ) bsizer = wx . BoxSizer ( wx . HORIZONTAL ) bsizer . AddStretchSpacer ( ) bsizer . Add ( wx . Button ( self , ID_CHECK_UPDATE , _ ( "Check" ) ) , 0 , wx . ALIGN_LEFT ) bsizer . AddStretchSpacer ( 2 ) bsizer . Add ( dl_b , 0 , wx . ALIGN_RIGHT ) bsizer . AddStretchSpacer ( ) sizer = wx . BoxSizer ( wx . VERTICAL ) sizer . AddMany ( [ ( ( 15 , 15 ) , 1 ) , ( statsz , 0 , wx . EXPAND ) , ( ( 15 , 15 ) , 0 ) , ( e_update , 0 , wx . EXPAND ) , ( ( 15 , 15 ) , 0 ) , ( bsizer , 1 , wx . EXPAND | wx . ALIGN_CENTER_VERTICAL ) , ( ( 15 , 15 ) , 1 ) ] ) msizer = wx . BoxSizer ( wx . HORIZONTAL ) msizer . AddMany ( [ ( ( 5 , 5 ) , 0 ) , ( sizer , 1 , wx . EXPAND ) , ( ( 5 , 5 ) , 0 ) ] ) self . SetSizer ( msizer )