parameters: (self, agwStyle)
docstring: Sets the window style.
  
          :param `agwStyle`: can be a combination of the following bits:
  
           =========================== =========== ==================================================
           Window Styles               Hex Value   Description
           =========================== =========== ==================================================
           ``INB_BOTTOM``                      0x1 Place labels below the page area. Available only for :class:`FlatImageBook`.
           ``INB_LEFT``                        0x2 Place labels on the left side. Available only for :class:`FlatImageBook`.
           ``INB_RIGHT``                       0x4 Place labels on the right side.
           ``INB_TOP``                         0x8 Place labels above the page area.
           ``INB_BORDER``                     0x10 Draws a border around :class:`LabelBook` or :class:`FlatImageBook`.
           ``INB_SHOW_ONLY_TEXT``             0x20 Shows only text labels and no images. Available only for :class:`LabelBook`.
           ``INB_SHOW_ONLY_IMAGES``           0x40 Shows only tab images and no label texts. Available only for :class:`LabelBook`.
           ``INB_FIT_BUTTON``                 0x80 Displays a pin button to show/hide the book control.
           ``INB_DRAW_SHADOW``               0x100 Draw shadows below the book tabs. Available only for :class:`LabelBook`.
           ``INB_USE_PIN_BUTTON``            0x200 Displays a pin button to show/hide the book control.
           ``INB_GRADIENT_BACKGROUND``       0x400 Draws a gradient shading on the tabs background. Available only for :class:`LabelBook`.
           ``INB_WEB_HILITE``                0x800 On mouse hovering, tabs behave like html hyperlinks. Available only for :class:`LabelBook`.
           ``INB_NO_RESIZE``                0x1000 Don't allow resizing of the tab area.
           ``INB_FIT_LABELTEXT``            0x2000 Will fit the tab area to the longest text (or text+image if you have images) in all the tabs.
           ``INB_BOLD_TAB_SELECTION``       0x4000 Show the selected tab text using a bold font. 
           =========================== =========== ==================================================
docstring_summary: Sets the window style.
docstring_tokens: Sets the window style .
function: def SetAGWWindowStyleFlag(self, agwStyle):
          """
          Sets the window style.
  
          :param `agwStyle`: can be a combination of the following bits:
  
           =========================== =========== ==================================================
           Window Styles               Hex Value   Description
           =========================== =========== ==================================================
           ``INB_BOTTOM``                      0x1 Place labels below the page area. Available only for :class:`FlatImageBook`.
           ``INB_LEFT``                        0x2 Place labels on the left side. Available only for :class:`FlatImageBook`.
           ``INB_RIGHT``                       0x4 Place labels on the right side.
           ``INB_TOP``                         0x8 Place labels above the page area.
           ``INB_BORDER``                     0x10 Draws a border around :class:`LabelBook` or :class:`FlatImageBook`.
           ``INB_SHOW_ONLY_TEXT``             0x20 Shows only text labels and no images. Available only for :class:`LabelBook`.
           ``INB_SHOW_ONLY_IMAGES``           0x40 Shows only tab images and no label texts. Available only for :class:`LabelBook`.
           ``INB_FIT_BUTTON``                 0x80 Displays a pin button to show/hide the book control.
           ``INB_DRAW_SHADOW``               0x100 Draw shadows below the book tabs. Available only for :class:`LabelBook`.
           ``INB_USE_PIN_BUTTON``            0x200 Displays a pin button to show/hide the book control.
           ``INB_GRADIENT_BACKGROUND``       0x400 Draws a gradient shading on the tabs background. Available only for :class:`LabelBook`.
           ``INB_WEB_HILITE``                0x800 On mouse hovering, tabs behave like html hyperlinks. Available only for :class:`LabelBook`.
           ``INB_NO_RESIZE``                0x1000 Don't allow resizing of the tab area.
           ``INB_FIT_LABELTEXT``            0x2000 Will fit the tab area to the longest text (or text+image if you have images) in all the tabs.
           ``INB_BOLD_TAB_SELECTION``       0x4000 Show the selected tab text using a bold font. 
           =========================== =========== ==================================================
          
          """
  
          self._agwStyle = agwStyle
          
          # Check that we are not in initialization process
          if self._bInitializing:
              return
  
          if not self._pages:
              return
  
          # Detach the windows attached to the sizer
          if self.GetSelection() >= 0:
              self._mainSizer.Detach(self._windows[self.GetSelection()])
  
          self._mainSizer.Detach(self._pages)
          
          if isinstance(self, LabelBook):
              self._mainSizer = wx.BoxSizer(wx.HORIZONTAL)
          else:
              if agwStyle & INB_LEFT or agwStyle & INB_RIGHT:
                  self._mainSizer = wx.BoxSizer(wx.HORIZONTAL)
              else:
                  self._mainSizer = wx.BoxSizer(wx.VERTICAL)
          
          self.SetSizer(self._mainSizer)
          
          # Add the tab container and the separator
          self._mainSizer.Add(self._pages, 0, wx.EXPAND)
  
          if isinstance(self, FlatImageBook):
              if agwStyle & INB_LEFT or agwStyle & INB_RIGHT:
                  self._pages.SetSizeHints(self._pages._nImgSize * 2, -1)
              else:
                  self._pages.SetSizeHints(-1, self._pages._nImgSize * 2)
          
          # Attach the windows back to the sizer to the sizer
          if self.GetSelection() >= 0:
              self.DoSetSelection(self._windows[self.GetSelection()])
  
          if agwStyle & INB_FIT_LABELTEXT:
              self.ResizeTabArea()
              
          self._mainSizer.Layout()
          dummy = wx.SizeEvent()
          wx.PostEvent(self, dummy)
          self._pages.Refresh()
function_tokens: def SetAGWWindowStyleFlag ( self , agwStyle ) : self . _agwStyle = agwStyle # Check that we are not in initialization process if self . _bInitializing : return if not self . _pages : return # Detach the windows attached to the sizer if self . GetSelection ( ) >= 0 : self . _mainSizer . Detach ( self . _windows [ self . GetSelection ( ) ] ) self . _mainSizer . Detach ( self . _pages ) if isinstance ( self , LabelBook ) : self . _mainSizer = wx . BoxSizer ( wx . HORIZONTAL ) else : if agwStyle & INB_LEFT or agwStyle & INB_RIGHT : self . _mainSizer = wx . BoxSizer ( wx . HORIZONTAL ) else : self . _mainSizer = wx . BoxSizer ( wx . VERTICAL ) self . SetSizer ( self . _mainSizer ) # Add the tab container and the separator self . _mainSizer . Add ( self . _pages , 0 , wx . EXPAND ) if isinstance ( self , FlatImageBook ) : if agwStyle & INB_LEFT or agwStyle & INB_RIGHT : self . _pages . SetSizeHints ( self . _pages . _nImgSize * 2 , - 1 ) else : self . _pages . SetSizeHints ( - 1 , self . _pages . _nImgSize * 2 ) # Attach the windows back to the sizer to the sizer if self . GetSelection ( ) >= 0 : self . DoSetSelection ( self . _windows [ self . GetSelection ( ) ] ) if agwStyle & INB_FIT_LABELTEXT : self . ResizeTabArea ( ) self . _mainSizer . Layout ( ) dummy = wx . SizeEvent ( ) wx . PostEvent ( self , dummy ) self . _pages . Refresh ( )