]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/src/gtk/gdi.py
* Add bool parameter to WindowDidResignKey indicating whether the menu bar
[wxWidgets.git] / wxPython / src / gtk / gdi.py
index 28fad488cdefeb29bdaee4e2ce3334fef1fb7313..019cf90676c2531e6683bf92c97957b7f9f3ca58 100644 (file)
@@ -170,6 +170,41 @@ class wxIcon(wxIconPtr):
 
 
 
+class wxIconLocationPtr :
+    def __init__(self,this):
+        self.this = this
+        self.thisown = 0
+    def __del__(self, delfunc=gdic.delete_wxIconLocation):
+        if self.thisown == 1:
+            try:
+                delfunc(self)
+            except:
+                pass
+    def IsOk(self, *_args, **_kwargs):
+        val = gdic.wxIconLocation_IsOk(self, *_args, **_kwargs)
+        return val
+    def SetFileName(self, *_args, **_kwargs):
+        val = gdic.wxIconLocation_SetFileName(self, *_args, **_kwargs)
+        return val
+    def GetFileName(self, *_args, **_kwargs):
+        val = gdic.wxIconLocation_GetFileName(self, *_args, **_kwargs)
+        return val
+    def SetIndex(self, *_args, **_kwargs):
+        val = gdic.wxIconLocation_SetIndex(self, *_args, **_kwargs)
+        return val
+    def GetIndex(self, *_args, **_kwargs):
+        val = gdic.wxIconLocation_GetIndex(self, *_args, **_kwargs)
+        return val
+    def __repr__(self):
+        return "<%s.%s instance; proxy of C++ wxIconLocation instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
+class wxIconLocation(wxIconLocationPtr):
+    def __init__(self,*_args,**_kwargs):
+        self.this = gdic.new_wxIconLocation(*_args,**_kwargs)
+        self.thisown = 1
+
+
+
+
 class wxIconBundlePtr :
     def __init__(self,this):
         self.this = this
@@ -272,7 +307,7 @@ class wxColourPtr(wxObjectPtr):
         return "<%s.%s instance; proxy of C++ wxColour instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
     asTuple = Get
     def __str__(self):                  return str(self.asTuple())
-    def __repr__(self):                 return 'wxColour:' + str(self.asTuple())
+    def __repr__(self):                 return 'wxColour' + str(self.asTuple())
     def __nonzero__(self):              return self.Ok()
     def __getinitargs__(self):          return ()
     def __getstate__(self):             return self.asTuple()
@@ -1034,6 +1069,20 @@ class wxWindowDC(wxWindowDCPtr):
 
 
 
+class wxMirrorDCPtr(wxDCPtr):
+    def __init__(self,this):
+        self.this = this
+        self.thisown = 0
+    def __repr__(self):
+        return "<%s.%s instance; proxy of C++ wxMirrorDC instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
+class wxMirrorDC(wxMirrorDCPtr):
+    def __init__(self,*_args,**_kwargs):
+        self.this = gdic.new_wxMirrorDC(*_args,**_kwargs)
+        self.thisown = 1
+
+
+
+
 class wxPalettePtr(wxGDIObjectPtr):
     def __init__(self,this):
         self.this = this
@@ -1250,6 +1299,9 @@ class wxRegionIteratorPtr(wxObjectPtr):
     def Next(self, *_args, **_kwargs):
         val = gdic.wxRegionIterator_Next(self, *_args, **_kwargs)
         return val
+    def __nonzero__(self, *_args, **_kwargs):
+        val = gdic.wxRegionIterator___nonzero__(self, *_args, **_kwargs)
+        return val
     def __repr__(self):
         return "<%s.%s instance; proxy of C++ wxRegionIterator instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
 class wxRegionIterator(wxRegionIteratorPtr):
@@ -1304,6 +1356,11 @@ def wxIconFromBitmap(*_args, **_kwargs):
     if val: val = wxIconPtr(val); val.thisown = 1
     return val
 
+def wxIconFromLocation(*_args, **_kwargs):
+    val = gdic.wxIconFromLocation(*_args,**_kwargs)
+    if val: val = wxIconPtr(val); val.thisown = 1
+    return val
+
 def wxStockCursor(*_args, **_kwargs):
     val = gdic.wxStockCursor(*_args,**_kwargs)
     if val: val = wxCursorPtr(val); val.thisown = 1