GetFont = staticmethod(GetFont)
def GetMetric(*args, **kwargs):
- """GetMetric(int index) -> int"""
+ """GetMetric(int index, Window win=None) -> int"""
return _misc_.SystemSettings_GetMetric(*args, **kwargs)
GetMetric = staticmethod(GetMetric)
return _misc_.SystemSettings_GetFont(*args, **kwargs)
def SystemSettings_GetMetric(*args, **kwargs):
- """SystemSettings_GetMetric(int index) -> int"""
+ """SystemSettings_GetMetric(int index, Window win=None) -> int"""
return _misc_.SystemSettings_GetMetric(*args, **kwargs)
def SystemSettings_HasFeature(*args, **kwargs):
return _misc_.SystemOptions_HasOption(*args, **kwargs)
HasOption = staticmethod(HasOption)
+ def IsFalse(*args, **kwargs):
+ """IsFalse(String name) -> bool"""
+ return _misc_.SystemOptions_IsFalse(*args, **kwargs)
+
+ IsFalse = staticmethod(IsFalse)
class SystemOptionsPtr(SystemOptions):
def __init__(self, this):
"""SystemOptions_HasOption(String name) -> bool"""
return _misc_.SystemOptions_HasOption(*args, **kwargs)
+def SystemOptions_IsFalse(*args, **kwargs):
+ """SystemOptions_IsFalse(String name) -> bool"""
+ return _misc_.SystemOptions_IsFalse(*args, **kwargs)
+
#---------------------------------------------------------------------------
"""GetTopLevelParent(Window win) -> Window"""
return _misc_.GetTopLevelParent(*args, **kwargs)
+def LaunchDefaultBrowser(*args, **kwargs):
+ """
+ LaunchDefaultBrowser(String url) -> bool
+
+ Launches the user's default browser and tells it to open the location
+ at ``url``. Returns ``True`` if the application was successfully
+ launched.
+ """
+ return _misc_.LaunchDefaultBrowser(*args, **kwargs)
+
def GetKeyState(*args, **kwargs):
"""
GetKeyState(int key) -> bool
return _misc_.ArtProvider_GetIcon(*args, **kwargs)
GetIcon = staticmethod(GetIcon)
+ def GetSizeHint(*args, **kwargs):
+ """
+ GetSizeHint(String client, bool platform_dependent=False) -> Size
+
+ Get the size hint of an icon from a specific Art Client, queries the
+ topmost provider if platform_dependent = false
+ """
+ return _misc_.ArtProvider_GetSizeHint(*args, **kwargs)
+
+ GetSizeHint = staticmethod(GetSizeHint)
def Destroy(*args, **kwargs):
"""Destroy(self)"""
return _misc_.ArtProvider_Destroy(*args, **kwargs)
"""
return _misc_.ArtProvider_GetIcon(*args, **kwargs)
+def ArtProvider_GetSizeHint(*args, **kwargs):
+ """
+ ArtProvider_GetSizeHint(String client, bool platform_dependent=False) -> Size
+
+ Get the size hint of an icon from a specific Art Client, queries the
+ topmost provider if platform_dependent = false
+ """
+ return _misc_.ArtProvider_GetSizeHint(*args, **kwargs)
+
#---------------------------------------------------------------------------
CONFIG_USE_LOCAL_FILE = _misc_.CONFIG_USE_LOCAL_FILE
def __repr__(self):
if self.IsValid():
- return '<wx.DateTime: \"%s\" at %s>' % ( self.Format(), self.this)
+ f = self.Format().encode(wx.GetDefaultPyEncoding())
+ return '<wx.DateTime: \"%s\" at %s>' % ( f, self.this)
else:
return '<wx.DateTime: \"INVALID\" at %s>' % self.this
def __str__(self):
if self.IsValid():
- return self.Format()
+ return self.Format().encode(wx.GetDefaultPyEncoding())
else:
return "INVALID DateTime"
return _misc_.TimeSpan_Format(*args, **kwargs)
def __repr__(self):
- return '<wx.TimeSpan: \"%s\" at %s>' % ( self.Format(), self.this)
+ f = self.Format().encode(wx.GetDefaultPyEncoding())
+ return '<wx.TimeSpan: \"%s\" at %s>' % ( f, self.this)
def __str__(self):
- return self.Format()
+ return self.Format().encode(wx.GetDefaultPyEncoding())
class TimeSpanPtr(TimeSpan):
"""GetData(self) -> bool"""
return _misc_.DropTarget_GetData(*args, **kwargs)
+ def SetDefaultAction(*args, **kwargs):
+ """SetDefaultAction(self, int action)"""
+ return _misc_.DropTarget_SetDefaultAction(*args, **kwargs)
+
+ def GetDefaultAction(*args, **kwargs):
+ """GetDefaultAction(self) -> int"""
+ return _misc_.DropTarget_GetDefaultAction(*args, **kwargs)
+
class DropTargetPtr(DropTarget):
def __init__(self, this):