parameters: (self, paneInfo)
docstring: Updates the docking guide windows positions and appearance.
  
          :param `paneInfo`: a :class:`AuiPaneInfo` instance.
docstring_summary: Updates the docking guide windows positions and appearance.
docstring_tokens: Updates the docking guide windows positions and appearance .
function: def UpdateDockingGuides(self, paneInfo):
          """
          Updates the docking guide windows positions and appearance.
  
          :param `paneInfo`: a :class:`AuiPaneInfo` instance.
          """
  
          if len(self._guides) == 0:
              self.CreateGuideWindows()
  
          captionSize = self._art.GetMetric(AUI_DOCKART_CAPTION_SIZE)
          frameRect = GetInternalFrameRect(self._frame, self._docks)
          mousePos = wx.GetMousePosition()
  
          for indx, guide in enumerate(self._guides):
  
              pt = wx.Point()
              guide_size = guide.host.GetSize()
              if not guide.host:
                  raise Exception("Invalid docking host")
  
              direction = guide.dock_direction
  
              if direction == AUI_DOCK_LEFT:
                  pt.x = frameRect.x + guide_size.x / 2 + 16
                  pt.y = frameRect.y + frameRect.height / 2
  
              elif direction == AUI_DOCK_TOP:
                  pt.x = frameRect.x + frameRect.width / 2
                  pt.y = frameRect.y + guide_size.y / 2 + 16
  
              elif direction == AUI_DOCK_RIGHT:
                  pt.x = frameRect.x + frameRect.width - guide_size.x / 2 - 16
                  pt.y = frameRect.y + frameRect.height / 2
  
              elif direction == AUI_DOCK_BOTTOM:
                  pt.x = frameRect.x + frameRect.width / 2
                  pt.y = frameRect.y + frameRect.height - guide_size.y / 2 - 16
  
              elif direction == AUI_DOCK_CENTER:
                  rc = paneInfo.window.GetScreenRect()
                  pt.x = rc.x + rc.width / 2
                  pt.y = rc.y + rc.height / 2
                  if paneInfo.HasCaption():
                      pt.y -= captionSize / 2
                  elif paneInfo.HasCaptionLeft():
                      pt.x -= captionSize / 2
  
              # guide will be centered around point 'pt'
              targetPosition = wx.Point(pt.x - guide_size.x / 2, pt.y - guide_size.y / 2)
  
              if guide.host.GetPosition() != targetPosition:
                  guide.host.Move(targetPosition)
  
              guide.host.AeroMove(targetPosition)
  
              if guide.dock_direction == AUI_DOCK_CENTER:
                  guide.host.ValidateNotebookDocking(paneInfo.IsNotebookDockable())
  
              guide.host.UpdateDockGuide(mousePos)
  
          paneInfo.window.Lower()
function_tokens: def UpdateDockingGuides ( self , paneInfo ) : if len ( self . _guides ) == 0 : self . CreateGuideWindows ( ) captionSize = self . _art . GetMetric ( AUI_DOCKART_CAPTION_SIZE ) frameRect = GetInternalFrameRect ( self . _frame , self . _docks ) mousePos = wx . GetMousePosition ( ) for indx , guide in enumerate ( self . _guides ) : pt = wx . Point ( ) guide_size = guide . host . GetSize ( ) if not guide . host : raise Exception ( "Invalid docking host" ) direction = guide . dock_direction if direction == AUI_DOCK_LEFT : pt . x = frameRect . x + guide_size . x / 2 + 16 pt . y = frameRect . y + frameRect . height / 2 elif direction == AUI_DOCK_TOP : pt . x = frameRect . x + frameRect . width / 2 pt . y = frameRect . y + guide_size . y / 2 + 16 elif direction == AUI_DOCK_RIGHT : pt . x = frameRect . x + frameRect . width - guide_size . x / 2 - 16 pt . y = frameRect . y + frameRect . height / 2 elif direction == AUI_DOCK_BOTTOM : pt . x = frameRect . x + frameRect . width / 2 pt . y = frameRect . y + frameRect . height - guide_size . y / 2 - 16 elif direction == AUI_DOCK_CENTER : rc = paneInfo . window . GetScreenRect ( ) pt . x = rc . x + rc . width / 2 pt . y = rc . y + rc . height / 2 if paneInfo . HasCaption ( ) : pt . y -= captionSize / 2 elif paneInfo . HasCaptionLeft ( ) : pt . x -= captionSize / 2 # guide will be centered around point 'pt' targetPosition = wx . Point ( pt . x - guide_size . x / 2 , pt . y - guide_size . y / 2 ) if guide . host . GetPosition ( ) != targetPosition : guide . host . Move ( targetPosition ) guide . host . AeroMove ( targetPosition ) if guide . dock_direction == AUI_DOCK_CENTER : guide . host . ValidateNotebookDocking ( paneInfo . IsNotebookDockable ( ) ) guide . host . UpdateDockGuide ( mousePos ) paneInfo . window . Lower ( )