parameters: (filename)
docstring: Returns either a `wx.Cursor` or `wx.Icon` created from the image file
      ``filename``.  This function is useful with the `wx.DropSource` class
      which, depending on platform accepts either an icon or a cursor.
docstring_summary: Returns either a `wx.Cursor` or `wx.Icon` created from the image file
      ``filename``.  This function is useful with the `wx.DropSource` class
      which, depending on platform accepts either an icon or a cursor.
docstring_tokens: Returns either a wx . Cursor or wx . Icon created from the image file filename . This function is useful with the wx . DropSource class which depending on platform accepts either an icon or a cursor .
function: def DROP_ICON(filename):
      """
      Returns either a `wx.Cursor` or `wx.Icon` created from the image file
      ``filename``.  This function is useful with the `wx.DropSource` class
      which, depending on platform accepts either an icon or a cursor.
      """
      img = wx.Image(filename)
      if wx.Platform == '__WXGTK__':
          return wx.IconFromBitmap(wx.BitmapFromImage(img))
      else:
          return wx.CursorFromImage(img)
function_tokens: def DROP_ICON ( filename ) : img = wx . Image ( filename ) if wx . Platform == '__WXGTK__' : return wx . IconFromBitmap ( wx . BitmapFromImage ( img ) ) else : return wx . CursorFromImage ( img )