Applied changes by Bartlomiej Gorny for recent files and style panel fix.

cellpos & cellspan parameters are changed to type ParamPosSize.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29779 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Roman Rolinsky
2004-10-11 00:00:31 +00:00
parent 3b35f6d8b3
commit 80389ff709
5 changed files with 59 additions and 6 deletions

View File

@@ -49,7 +49,10 @@ class xxxParam(xxxNode):
def value(self):
return self.textNode.data.encode(g.currentEncoding)
def update(self, value):
self.textNode.data = unicode(value, g.currentEncoding)
try: # handle exception if encoding is wrong
self.textNode.data = unicode(value, g.currentEncoding)
except UnicodeDecodeError:
wxLogMessage("Unicode error: set encoding in file\nglobals.py to something appropriate")
# Integer parameter
class xxxParamInt(xxxParam):