"""GetId(self) -> int"""
return _misc_.Timer_GetId(*args, **kwargs)
- def Destroy():
+ def Destroy(self):
"""NO-OP: Timers must be destroyed by normal refrence counting"""
pass
ART_CUT = cvar.ART_CUT
ART_PASTE = cvar.ART_PASTE
ART_DELETE = cvar.ART_DELETE
+ART_NEW = cvar.ART_NEW
ART_UNDO = cvar.ART_UNDO
ART_REDO = cvar.ART_REDO
ART_QUIT = cvar.ART_QUIT
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):