parameters: (self)
docstring: Layout the panel
docstring_summary: Layout the panel
docstring_tokens: Layout the panel
function: def __DoLayout(self):
          """Layout the panel"""
          # Make three different panels of buttons with different backgrounds
          # to test transparency and appearance of buttons under different use
          # cases
          p1 = wx.Panel(self)
          p2 = GradientPanel(self)
          p3 = wx.Panel(self)
          p3.SetBackgroundColour(wx.BLUE)
  
          self.__LayoutPanel(p1, "Default Background:")
          self.__LayoutPanel(p2, "Gradient Background:", exstyle=True)
          self.__LayoutPanel(p3, "Solid Background:")
  
          sizer = wx.BoxSizer(wx.VERTICAL)
          sizer.AddMany([(p1, 0, wx.EXPAND), (p2, 0, wx.EXPAND), 
                         (p3, 0, wx.EXPAND)])
          hsizer = wx.BoxSizer(wx.HORIZONTAL)
          hsizer.Add(sizer, 1, wx.EXPAND)
          self.SetSizer(hsizer)
          self.SetAutoLayout(True)
function_tokens: def __DoLayout ( self ) : # Make three different panels of buttons with different backgrounds # to test transparency and appearance of buttons under different use # cases p1 = wx . Panel ( self ) p2 = GradientPanel ( self ) p3 = wx . Panel ( self ) p3 . SetBackgroundColour ( wx . BLUE ) self . __LayoutPanel ( p1 , "Default Background:" ) self . __LayoutPanel ( p2 , "Gradient Background:" , exstyle = True ) self . __LayoutPanel ( p3 , "Solid Background:" ) sizer = wx . BoxSizer ( wx . VERTICAL ) sizer . AddMany ( [ ( p1 , 0 , wx . EXPAND ) , ( p2 , 0 , wx . EXPAND ) , ( p3 , 0 , wx . EXPAND ) ] ) hsizer = wx . BoxSizer ( wx . HORIZONTAL ) hsizer . Add ( sizer , 1 , wx . EXPAND ) self . SetSizer ( hsizer ) self . SetAutoLayout ( True )