parameters: (self)
docstring: Calculates all the positions of the visible items.
docstring_summary: Calculates all the positions of the visible items.
docstring_tokens: Calculates all the positions of the visible items .
function: def CalculatePositions(self):
          """ Calculates all the positions of the visible items. """
  
          if not self._anchor:
              return
  
          self.absoluteWindows = {}
          
          dc = wx.ClientDC(self)
          self.PrepareDC(dc)
  
          dc.SetFont(self._normalFont)
          dc.SetPen(self._dottedPen)
          y = 2
          y = self.CalculateLevel(self._anchor, dc, 0, y) # start recursion
          
          if self.HasAGWFlag(TR_ALIGN_WINDOWS) or self.HasAGWFlag(TR_ALIGN_WINDOWS_RIGHT):
              align = (self.HasAGWFlag(TR_ALIGN_WINDOWS) and [1] or [2])[0]
              y = 2
              y = self.CalculateLevel(self._anchor, dc, 0, y, align)
function_tokens: def CalculatePositions ( self ) : if not self . _anchor : return self . absoluteWindows = { } dc = wx . ClientDC ( self ) self . PrepareDC ( dc ) dc . SetFont ( self . _normalFont ) dc . SetPen ( self . _dottedPen ) y = 2 y = self . CalculateLevel ( self . _anchor , dc , 0 , y ) # start recursion if self . HasAGWFlag ( TR_ALIGN_WINDOWS ) or self . HasAGWFlag ( TR_ALIGN_WINDOWS_RIGHT ) : align = ( self . HasAGWFlag ( TR_ALIGN_WINDOWS ) and [ 1 ] or [ 2 ] ) [ 0 ] y = 2 y = self . CalculateLevel ( self . _anchor , dc , 0 , y , align )