parameters: (self, disabled)
return_statement: return rotated_bitmap
docstring: Returns the correct bitmap depending on the tool orientation.
  
          :param bool `disabled`: whether to return the disabled bitmap or not.
docstring_summary: Returns the correct bitmap depending on the tool orientation.
docstring_tokens: Returns the correct bitmap depending on the tool orientation .
function: def GetRotatedBitmap(self, disabled):
          """
          Returns the correct bitmap depending on the tool orientation.
  
          :param bool `disabled`: whether to return the disabled bitmap or not.
          """
          
          bitmap_to_rotate = (disabled and [self.disabled_bitmap] or [self.bitmap])[0]
          if not bitmap_to_rotate.IsOk() or self.orientation == AUI_TBTOOL_HORIZONTAL:
              return bitmap_to_rotate
  
          rotated_bitmap = wx.NullBitmap
          clockwise = True
          if self.orientation == AUI_TBTOOL_VERT_CLOCKWISE:
              rotated_bitmap = (disabled and [self.clockwisedisbmp] or [self.clockwisebmp])[0]
  
          elif self.orientation == AUI_TBTOOL_VERT_COUNTERCLOCKWISE:
              rotated_bitmap = (disabled and [self.counterclockwisedisbmp] or [self.counterclockwisebmp])[0]
              clockwise = False
  
          if not rotated_bitmap.IsOk():
              rotated_bitmap = wx.BitmapFromImage(bitmap_to_rotate.ConvertToImage().Rotate90(clockwise))
  
          return rotated_bitmap
function_tokens: def GetRotatedBitmap ( self , disabled ) : bitmap_to_rotate = ( disabled and [ self . disabled_bitmap ] or [ self . bitmap ] ) [ 0 ] if not bitmap_to_rotate . IsOk ( ) or self . orientation == AUI_TBTOOL_HORIZONTAL : return bitmap_to_rotate rotated_bitmap = wx . NullBitmap clockwise = True if self . orientation == AUI_TBTOOL_VERT_CLOCKWISE : rotated_bitmap = ( disabled and [ self . clockwisedisbmp ] or [ self . clockwisebmp ] ) [ 0 ] elif self . orientation == AUI_TBTOOL_VERT_COUNTERCLOCKWISE : rotated_bitmap = ( disabled and [ self . counterclockwisedisbmp ] or [ self . counterclockwisebmp ] ) [ 0 ] clockwise = False if not rotated_bitmap . IsOk ( ) : rotated_bitmap = wx . BitmapFromImage ( bitmap_to_rotate . ConvertToImage ( ) . Rotate90 ( clockwise ) ) return rotated_bitmap