]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/src/gtk/_misc.py
Be nice to eVC++ build process and don't include not existing files.
[wxWidgets.git] / wxPython / src / gtk / _misc.py
index 4a0fdc823cd90547f719796bd5f00557ffe27359..802f891da902d2c84fae7d61bf2e58218731b15b 100644 (file)
@@ -313,6 +313,7 @@ def EndBusyCursor(*args):
 def GetElapsedTime(*args, **kwargs):
   """GetElapsedTime(bool resetTimer=True) -> long"""
   return _misc_.GetElapsedTime(*args, **kwargs)
 def GetElapsedTime(*args, **kwargs):
   """GetElapsedTime(bool resetTimer=True) -> long"""
   return _misc_.GetElapsedTime(*args, **kwargs)
+GetElapsedTime = wx._deprecated(GetElapsedTime) 
 
 def IsBusy(*args):
   """IsBusy() -> bool"""
 
 def IsBusy(*args):
   """IsBusy() -> bool"""
@@ -3834,6 +3835,16 @@ class TimeSpan(object):
     """Proxy of C++ TimeSpan class"""
     thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
     __repr__ = _swig_repr
     """Proxy of C++ TimeSpan class"""
     thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
     __repr__ = _swig_repr
+    def Milliseconds(*args, **kwargs):
+        """Milliseconds(long ms) -> TimeSpan"""
+        return _misc_.TimeSpan_Milliseconds(*args, **kwargs)
+
+    Milliseconds = staticmethod(Milliseconds)
+    def Millisecond(*args, **kwargs):
+        """Millisecond() -> TimeSpan"""
+        return _misc_.TimeSpan_Millisecond(*args, **kwargs)
+
+    Millisecond = staticmethod(Millisecond)
     def Seconds(*args, **kwargs):
         """Seconds(long sec) -> TimeSpan"""
         return _misc_.TimeSpan_Seconds(*args, **kwargs)
     def Seconds(*args, **kwargs):
         """Seconds(long sec) -> TimeSpan"""
         return _misc_.TimeSpan_Seconds(*args, **kwargs)
@@ -4026,6 +4037,14 @@ class TimeSpan(object):
 TimeSpan_swigregister = _misc_.TimeSpan_swigregister
 TimeSpan_swigregister(TimeSpan)
 
 TimeSpan_swigregister = _misc_.TimeSpan_swigregister
 TimeSpan_swigregister(TimeSpan)
 
+def TimeSpan_Milliseconds(*args, **kwargs):
+  """TimeSpan_Milliseconds(long ms) -> TimeSpan"""
+  return _misc_.TimeSpan_Milliseconds(*args, **kwargs)
+
+def TimeSpan_Millisecond(*args):
+  """TimeSpan_Millisecond() -> TimeSpan"""
+  return _misc_.TimeSpan_Millisecond(*args)
+
 def TimeSpan_Seconds(*args, **kwargs):
   """TimeSpan_Seconds(long sec) -> TimeSpan"""
   return _misc_.TimeSpan_Seconds(*args, **kwargs)
 def TimeSpan_Seconds(*args, **kwargs):
   """TimeSpan_Seconds(long sec) -> TimeSpan"""
   return _misc_.TimeSpan_Seconds(*args, **kwargs)
@@ -4595,6 +4614,17 @@ class DataObjectComposite(DataObject):
         """
         return _misc_.DataObjectComposite_Add(*args, **kwargs)
 
         """
         return _misc_.DataObjectComposite_Add(*args, **kwargs)
 
+    def GetReceivedFormat(*args, **kwargs):
+        """
+        GetReceivedFormat(self) -> DataFormat
+
+        Report the format passed to the `SetData` method.  This should be the
+        format of the data object within the composite that recieved data from
+        the clipboard or the DnD operation.  You can use this method to find
+        out what kind of data object was recieved.
+        """
+        return _misc_.DataObjectComposite_GetReceivedFormat(*args, **kwargs)
+
 DataObjectComposite_swigregister = _misc_.DataObjectComposite_swigregister
 DataObjectComposite_swigregister(DataObjectComposite)
 
 DataObjectComposite_swigregister = _misc_.DataObjectComposite_swigregister
 DataObjectComposite_swigregister(DataObjectComposite)
 
@@ -5386,8 +5416,8 @@ class VideoMode(object):
         """
         Matches(self, VideoMode other) -> bool
 
         """
         Matches(self, VideoMode other) -> bool
 
-        Returns true if this mode matches the other one in the sense that all
-        non zero fields of the other mode have the same value in this
+        Returns True if this mode matches the other one in the sense that all
+        non-zero fields of the other mode have the same value in this
         one (except for refresh which is allowed to have a greater value)
         """
         return _misc_.VideoMode_Matches(*args, **kwargs)
         one (except for refresh which is allowed to have a greater value)
         """
         return _misc_.VideoMode_Matches(*args, **kwargs)
@@ -5404,8 +5434,7 @@ class VideoMode(object):
         """
         GetHeight(self) -> int
 
         """
         GetHeight(self) -> int
 
-        Returns the screen width in pixels (e.g. 640*480), 0 means
-        unspecified
+        Returns the screen height in pixels (e.g. 640*480), 0 means unspecified
         """
         return _misc_.VideoMode_GetHeight(*args, **kwargs)
 
         """
         return _misc_.VideoMode_GetHeight(*args, **kwargs)
 
@@ -5504,6 +5533,15 @@ class Display(object):
         """
         return _misc_.Display_GetGeometry(*args, **kwargs)
 
         """
         return _misc_.Display_GetGeometry(*args, **kwargs)
 
+    def GetClientArea(*args, **kwargs):
+        """
+        GetClientArea(self) -> Rect
+
+        Returns the bounding rectangle the client area of the display,
+        i.e., without taskbars and such.
+        """
+        return _misc_.Display_GetClientArea(*args, **kwargs)
+
     def GetName(*args, **kwargs):
         """
         GetName(self) -> String
     def GetName(*args, **kwargs):
         """
         GetName(self) -> String
@@ -5516,7 +5554,7 @@ class Display(object):
         """
         IsPrimary(self) -> bool
 
         """
         IsPrimary(self) -> bool
 
-        Returns true if the display is the primary display. The primary
+        Returns True if the display is the primary display. The primary
         display is the one whose index is 0.
         """
         return _misc_.Display_IsPrimary(*args, **kwargs)
         display is the one whose index is 0.
         """
         return _misc_.Display_IsPrimary(*args, **kwargs)
@@ -5608,14 +5646,13 @@ def Display_GetFromWindow(*args, **kwargs):
 
 class StandardPaths(object):
     """
 
 class StandardPaths(object):
     """
-    wx.StandardPaths returns the standard locations in the file system and
-    should be used by the programs to find their data files in a portable
-    way.
+    wx.StandardPaths returns standard locations in the file system and
+    should be used by programs to find their data files in a portable way.
 
     In the description of the methods below, the example return values are
     given for the Unix, Windows and Mac OS X systems, however please note
 
     In the description of the methods below, the example return values are
     given for the Unix, Windows and Mac OS X systems, however please note
-    that these are just the examples and the actual values may differ. For
-    example, under Windows: the system administrator may change the
+    that these are just  examples and the actual values may differ. For
+    example, under Windows the system administrator may change the
     standard directories locations, i.e. the Windows directory may be
     named W:\Win2003 instead of the default C:\Windows.
 
     standard directories locations, i.e. the Windows directory may be
     named W:\Win2003 instead of the default C:\Windows.
 
@@ -5626,7 +5663,7 @@ class StandardPaths(object):
 
     The directories returned by the methods of this class may or may not
     exist. If they don't exist, it's up to the caller to create them,
 
     The directories returned by the methods of this class may or may not
     exist. If they don't exist, it's up to the caller to create them,
-    wxStandardPaths doesn't do it.
+    wx.StandardPaths doesn't do it.
 
     Finally note that these functions only work with standardly packaged
     applications. I.e. under Unix you should follow the standard
 
     Finally note that these functions only work with standardly packaged
     applications. I.e. under Unix you should follow the standard
@@ -5637,6 +5674,9 @@ class StandardPaths(object):
     thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
     def __init__(self): raise AttributeError, "No constructor defined"
     __repr__ = _swig_repr
     thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
     def __init__(self): raise AttributeError, "No constructor defined"
     __repr__ = _swig_repr
+    ResourceCat_None = _misc_.StandardPaths_ResourceCat_None
+    ResourceCat_Messages = _misc_.StandardPaths_ResourceCat_Messages
+    ResourceCat_Max = _misc_.StandardPaths_ResourceCat_Max
     def Get(*args, **kwargs):
         """
         Get() -> StandardPaths
     def Get(*args, **kwargs):
         """
         Get() -> StandardPaths
@@ -5723,6 +5763,43 @@ class StandardPaths(object):
         """
         return _misc_.StandardPaths_GetPluginsDir(*args, **kwargs)
 
         """
         return _misc_.StandardPaths_GetPluginsDir(*args, **kwargs)
 
+    def GetResourcesDir(*args, **kwargs):
+        """
+        GetResourcesDir(self) -> String
+
+        Get resources directory.  Resources are auxiliary files used by the
+        application and include things like image and sound files.
+
+        Same as `GetDataDir` for all platforms except Mac where it returns
+        Contents/Resources subdirectory of the app bundle.
+        """
+        return _misc_.StandardPaths_GetResourcesDir(*args, **kwargs)
+
+    def GetLocalizedResourcesDir(*args, **kwargs):
+        """
+        GetLocalizedResourcesDir(self, String lang, int category=ResourceCat_None) -> String
+
+        Get localized resources directory containing the resource files of the
+        specified category for the given language.
+
+        In general this is just GetResourcesDir()/lang under Windows and Unix
+        and GetResourcesDir()/lang.lproj under Mac but is something quite
+        different under Unix for the message catalog category (namely the
+        standard prefix/share/locale/lang/LC_MESSAGES.)
+        """
+        return _misc_.StandardPaths_GetLocalizedResourcesDir(*args, **kwargs)
+
+    def GetDocumentsDir(*args, **kwargs):
+        """
+        GetDocumentsDir(self) -> String
+
+        Return the Documents directory for the current user.
+
+        C:\Documents and Settings\username\Documents under Windows,
+        $HOME under Unix and ~/Documents under Mac
+        """
+        return _misc_.StandardPaths_GetDocumentsDir(*args, **kwargs)
+
     def SetInstallPrefix(*args, **kwargs):
         """
         SetInstallPrefix(self, String prefix)
     def SetInstallPrefix(*args, **kwargs):
         """
         SetInstallPrefix(self, String prefix)