reSWIGged

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34089 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
2005-05-17 01:11:22 +00:00
parent d167fc518a
commit 976dbff5e6
10 changed files with 396 additions and 0 deletions

View File

@@ -5262,6 +5262,18 @@ class DropSourcePtr(DropSource):
self.__class__ = DropSource
_misc_.DropSource_swigregister(DropSourcePtr)
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 a icon or a cursor.
"""
img = wx.Image(filename)
if wx.Platform == '__WXGTK__':
return wx.IconFromBitmap(wx.BitmapFromImage(img))
else:
return wx.CursorFromImage(img)
class DropTarget(object):
"""Proxy of C++ DropTarget class"""
def __repr__(self):