X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/65191ae8f2f5f19e6e042b8eb596ff3b0776dba0..e8788ed0c675708ff488032b4697fa2455e9fc41:/wxPython/src/gtk/events.py diff --git a/wxPython/src/gtk/events.py b/wxPython/src/gtk/events.py index 85de45a1f6..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 @@ -571,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