Added fix for unicode build (no convertion needed)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@17861 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Roman Rolinsky
2002-11-13 14:32:35 +00:00
parent 915438c6ea
commit cafe0fd75e

View File

@@ -36,10 +36,16 @@ class xxxParam(xxxNode):
# Use convertion from unicode to current encoding
self.textNode = text
# Value returns string
def value(self):
return self.textNode.data.encode(currentEncoding)
def update(self, value):
self.textNode.data = unicode(value, currentEncoding)
if wxUSE_UNICODE: # no conversion is needed
def value(self):
return self.textNode.data
def update(self, value):
self.textNode.data = value
else:
def value(self):
return self.textNode.data.encode(currentEncoding)
def update(self, value):
self.textNode.data = unicode(value, currentEncoding)
# Integer parameter
class xxxParamInt(xxxParam):