projects
/
wxWidgets.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Remove obsolete includes
[wxWidgets.git]
/
wxPython
/
src
/
gtk
/
_misc.py
diff --git
a/wxPython/src/gtk/_misc.py
b/wxPython/src/gtk/_misc.py
index bc65d332d64dedaf850704841deec448ea29cdd7..b1481840b4414e92ec136a707bfd7174d8ece2c3 100644
(file)
--- a/
wxPython/src/gtk/_misc.py
+++ b/
wxPython/src/gtk/_misc.py
@@
-241,6
+241,11
@@
class SystemOptions(_core.Object):
return _misc_.SystemOptions_HasOption(*args, **kwargs)
HasOption = staticmethod(HasOption)
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):
class SystemOptionsPtr(SystemOptions):
def __init__(self, this):
@@
-271,6
+276,10
@@
def SystemOptions_HasOption(*args, **kwargs):
"""SystemOptions_HasOption(String name) -> bool"""
return _misc_.SystemOptions_HasOption(*args, **kwargs)
"""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)
+
#---------------------------------------------------------------------------
#---------------------------------------------------------------------------
@@
-3843,12
+3852,13
@@
class DateTime(object):
def __repr__(self):
if self.IsValid():
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():
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"
else:
return "INVALID DateTime"
@@
-4168,9
+4178,10
@@
class TimeSpan(object):
return _misc_.TimeSpan_Format(*args, **kwargs)
def __repr__(self):
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):
def __str__(self):
- return self.Format()
+ return self.Format()
.encode(wx.GetDefaultPyEncoding())
class TimeSpanPtr(TimeSpan):
class TimeSpanPtr(TimeSpan):