X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/9d6da64a8b5aa6d213237b46bdd1d8fbc9af1611..e8788ed0c675708ff488032b4697fa2455e9fc41:/wxPython/src/gtk/events.py?ds=inline diff --git a/wxPython/src/gtk/events.py b/wxPython/src/gtk/events.py index 23b0f69519..03051a0702 100644 --- a/wxPython/src/gtk/events.py +++ b/wxPython/src/gtk/events.py @@ -41,12 +41,15 @@ class wxEventPtr(wxObjectPtr): def Skip(self, *_args, **_kwargs): val = apply(eventsc.wxEvent_Skip,(self,) + _args, _kwargs) return val + def Clone(self, *_args, **_kwargs): + val = apply(eventsc.wxEvent_Clone,(self,) + _args, _kwargs) + if val: val = wxEventPtr(val) + return val def __repr__(self): return "" % (self.this,) class wxEvent(wxEventPtr): - def __init__(self,*_args,**_kwargs): - self.this = apply(eventsc.new_wxEvent,_args,_kwargs) - self.thisown = 1 + def __init__(self,this): + self.this = this @@ -135,6 +138,9 @@ class wxCommandEventPtr(wxEventPtr): def SetInt(self, *_args, **_kwargs): val = apply(eventsc.wxCommandEvent_SetInt,(self,) + _args, _kwargs) return val + def GetClientData(self, *_args, **_kwargs): + val = apply(eventsc.wxCommandEvent_GetClientData,(self,) + _args, _kwargs) + return val def __repr__(self): return "" % (self.this,) class wxCommandEvent(wxCommandEventPtr): @@ -568,6 +574,23 @@ class wxFocusEvent(wxFocusEventPtr): +class wxChildFocusEventPtr(wxCommandEventPtr): + def __init__(self,this): + self.this = this + self.thisown = 0 + def GetWindow(self, *_args, **_kwargs): + val = apply(eventsc.wxChildFocusEvent_GetWindow,(self,) + _args, _kwargs) + return val + def __repr__(self): + return "" % (self.this,) +class wxChildFocusEvent(wxChildFocusEventPtr): + def __init__(self,*_args,**_kwargs): + self.this = apply(eventsc.new_wxChildFocusEvent,_args,_kwargs) + self.thisown = 1 + + + + class wxActivateEventPtr(wxEventPtr): def __init__(self,this): self.this = this @@ -942,6 +965,29 @@ class wxTimerEvent(wxTimerEventPtr): +class wxTextUrlEventPtr(wxCommandEventPtr): + def __init__(self,this): + self.this = this + self.thisown = 0 + def GetMouseEvent(self, *_args, **_kwargs): + val = apply(eventsc.wxTextUrlEvent_GetMouseEvent,(self,) + _args, _kwargs) + return val + def GetURLStart(self, *_args, **_kwargs): + val = apply(eventsc.wxTextUrlEvent_GetURLStart,(self,) + _args, _kwargs) + return val + def GetURLEnd(self, *_args, **_kwargs): + val = apply(eventsc.wxTextUrlEvent_GetURLEnd,(self,) + _args, _kwargs) + return val + def __repr__(self): + return "" % (self.this,) +class wxTextUrlEvent(wxTextUrlEventPtr): + def __init__(self,*_args,**_kwargs): + self.this = apply(eventsc.new_wxTextUrlEvent,_args,_kwargs) + self.thisown = 1 + + + + class wxPyEventPtr(wxEventPtr): def __init__(self,this): self.this = this