]> git.saurik.com Git - wxWidgets.git/blobdiff - utils/wxPython/src/gtk/events.py
added font encoding support
[wxWidgets.git] / utils / wxPython / src / gtk / events.py
index a6411a874b7a3bdd27c9dfd402f73df275fe2a1f..340f4178aca78ea9d485d8260bd70372d0f48c80 100644 (file)
@@ -618,18 +618,37 @@ class wxSysColourChangedEvent(wxSysColourChangedEventPtr):
 
 
 
-class wxPyEventPtr(wxCommandEventPtr):
+class wxNotifyEventPtr(wxCommandEventPtr):
+    def __init__(self,this):
+        self.this = this
+        self.thisown = 0
+    def IsAllowed(self, *_args, **_kwargs):
+        val = apply(eventsc.wxNotifyEvent_IsAllowed,(self,) + _args, _kwargs)
+        return val
+    def Veto(self, *_args, **_kwargs):
+        val = apply(eventsc.wxNotifyEvent_Veto,(self,) + _args, _kwargs)
+        return val
+    def __repr__(self):
+        return "<C wxNotifyEvent instance at %s>" % (self.this,)
+class wxNotifyEvent(wxNotifyEventPtr):
+    def __init__(self,this):
+        self.this = this
+
+
+
+
+class wxPyEventPtr(wxEventPtr):
     def __init__(self,this):
         self.this = this
         self.thisown = 0
     def __del__(self,eventsc=eventsc):
         if self.thisown == 1 :
             eventsc.delete_wxPyEvent(self)
-    def SetUserData(self, *_args, **_kwargs):
-        val = apply(eventsc.wxPyEvent_SetUserData,(self,) + _args, _kwargs)
+    def SetPyData(self, *_args, **_kwargs):
+        val = apply(eventsc.wxPyEvent_SetPyData,(self,) + _args, _kwargs)
         return val
-    def GetUserData(self, *_args, **_kwargs):
-        val = apply(eventsc.wxPyEvent_GetUserData,(self,) + _args, _kwargs)
+    def GetPyData(self, *_args, **_kwargs):
+        val = apply(eventsc.wxPyEvent_GetPyData,(self,) + _args, _kwargs)
         return val
     def __repr__(self):
         return "<C wxPyEvent instance at %s>" % (self.this,)
@@ -641,21 +660,25 @@ class wxPyEvent(wxPyEventPtr):
 
 
 
-class wxNotifyEventPtr(wxCommandEventPtr):
+class wxPyCommandEventPtr(wxCommandEventPtr):
     def __init__(self,this):
         self.this = this
         self.thisown = 0
-    def IsAllowed(self, *_args, **_kwargs):
-        val = apply(eventsc.wxNotifyEvent_IsAllowed,(self,) + _args, _kwargs)
+    def __del__(self,eventsc=eventsc):
+        if self.thisown == 1 :
+            eventsc.delete_wxPyCommandEvent(self)
+    def SetPyData(self, *_args, **_kwargs):
+        val = apply(eventsc.wxPyCommandEvent_SetPyData,(self,) + _args, _kwargs)
         return val
-    def Veto(self, *_args, **_kwargs):
-        val = apply(eventsc.wxNotifyEvent_Veto,(self,) + _args, _kwargs)
+    def GetPyData(self, *_args, **_kwargs):
+        val = apply(eventsc.wxPyCommandEvent_GetPyData,(self,) + _args, _kwargs)
         return val
     def __repr__(self):
-        return "<C wxNotifyEvent instance at %s>" % (self.this,)
-class wxNotifyEvent(wxNotifyEventPtr):
-    def __init__(self,this):
-        self.this = this
+        return "<C wxPyCommandEvent instance at %s>" % (self.this,)
+class wxPyCommandEvent(wxPyCommandEventPtr):
+    def __init__(self,*_args,**_kwargs):
+        self.this = apply(eventsc.new_wxPyCommandEvent,_args,_kwargs)
+        self.thisown = 1