X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/0122b7e3fcfd78f879470053c91a60e3c66537a3..a4353f07c6b37712634d4b2d86527b647a08044f:/wxPython/src/msw/clip_dnd.py diff --git a/wxPython/src/msw/clip_dnd.py b/wxPython/src/msw/clip_dnd.py index 8b47a1ac62..2743257032 100644 --- a/wxPython/src/msw/clip_dnd.py +++ b/wxPython/src/msw/clip_dnd.py @@ -4,6 +4,8 @@ import clip_dndc from misc import * from gdi import * + +from fonts import * import wx class wxDataFormatPtr : def __init__(self,this): @@ -258,6 +260,46 @@ class wxCustomDataObject(wxCustomDataObjectPtr): +class wxURLDataObjectPtr(wxDataObjectCompositePtr): + def __init__(self,this): + self.this = this + self.thisown = 0 + def GetURL(self, *_args, **_kwargs): + val = apply(clip_dndc.wxURLDataObject_GetURL,(self,) + _args, _kwargs) + return val + def SetURL(self, *_args, **_kwargs): + val = apply(clip_dndc.wxURLDataObject_SetURL,(self,) + _args, _kwargs) + return val + def __repr__(self): + return "" % (self.this,) +class wxURLDataObject(wxURLDataObjectPtr): + def __init__(self,*_args,**_kwargs): + self.this = apply(clip_dndc.new_wxURLDataObject,_args,_kwargs) + self.thisown = 1 + + + + +class wxMetafileDataObjectPtr(wxDataObjectSimplePtr): + def __init__(self,this): + self.this = this + self.thisown = 0 + def SetMetafile(self, *_args, **_kwargs): + val = apply(clip_dndc.wxMetafileDataObject_SetMetafile,(self,) + _args, _kwargs) + return val + def GetMetafile(self, *_args, **_kwargs): + val = apply(clip_dndc.wxMetafileDataObject_GetMetafile,(self,) + _args, _kwargs) + return val + def __repr__(self): + return "" % (self.this,) +class wxMetafileDataObject(wxMetafileDataObjectPtr): + def __init__(self,*_args,**_kwargs): + self.this = apply(clip_dndc.new_wxMetafileDataObject,_args,_kwargs) + self.thisown = 1 + + + + class wxClipboardPtr(wxObjectPtr): def __init__(self,this): self.this = this @@ -498,12 +540,17 @@ wxDF_ENHMETAFILE = clip_dndc.wxDF_ENHMETAFILE wxDF_FILENAME = clip_dndc.wxDF_FILENAME wxDF_LOCALE = clip_dndc.wxDF_LOCALE wxDF_PRIVATE = clip_dndc.wxDF_PRIVATE +wxDF_HTML = clip_dndc.wxDF_HTML wxDF_MAX = clip_dndc.wxDF_MAX cvar = clip_dndc.cvar wxFormatInvalid = wxDataFormatPtr(clip_dndc.cvar.wxFormatInvalid) wxTheClipboard = wxClipboardPtr(clip_dndc.cvar.wxTheClipboard) +wxDrag_CopyOnly = clip_dndc.wxDrag_CopyOnly +wxDrag_AllowMove = clip_dndc.wxDrag_AllowMove +wxDrag_DefaultMove = clip_dndc.wxDrag_DefaultMove wxDragError = clip_dndc.wxDragError wxDragNone = clip_dndc.wxDragNone wxDragCopy = clip_dndc.wxDragCopy wxDragMove = clip_dndc.wxDragMove +wxDragLink = clip_dndc.wxDragLink wxDragCancel = clip_dndc.wxDragCancel