git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@23639
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
value = self.GetValue()
dbg('value = "%s"' % value)
value = self.GetValue()
dbg('value = "%s"' % value)
+ if type(value) == types.UnicodeType:
+ value = str(value) # convert to regular string
+
valid = True # assume true
if type(value) == types.StringType:
valid = True # assume true
if type(value) == types.StringType:
hour, minute, second = value.hour, value.minute, value.second
else:
# Not a valid function argument
hour, minute, second = value.hour, value.minute, value.second
else:
# Not a valid function argument
error = 'GetWxDateTime requires wxDateTime, mxDateTime or parsable time string, passed %s'% repr(value)
else:
error = 'GetWxDateTime requires wxDateTime or parsable time string, passed %s'% repr(value)
error = 'GetWxDateTime requires wxDateTime, mxDateTime or parsable time string, passed %s'% repr(value)
else:
error = 'GetWxDateTime requires wxDateTime or parsable time string, passed %s'% repr(value)