"""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
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):