such paths are used by non-english pyvcp files.
---
On Fri, Oct 09, 2009 at 06:44:30PM +0400, Евгений Александрович wrote:
> but if I use Russian characters instead "tab1" or "tab2" system crushes in
> Axis UI.
... giving an error similar to the following:
UnicodeEncodeError: 'ascii' codec can't encode character u'\u0415' in position
21: ordinal not in range(128)
The specified string is used both for display, and for the name of the
underlying widget. It appears that non-ASCII characters work for this
purpose with the following change:
lib/python/bwidget.py | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/lib/python/bwidget.py b/lib/python/bwidget.py
index 7f98aa7..a884910 100644
--- a/lib/python/bwidget.py
+++ b/lib/python/bwidget.py
@@ -35,17 +35,17 @@ import Tkinter, types
def returnswidget(f):
def w(self, *args, **kw):
r = f(self, *args, **kw)
- return self.nametowidget(str(r))
+ return self.nametowidget(unicode(r))
w.__doc__ = f.__doc__
return w
def makeswidget(f, t):
def w(self, *args, **kw):
- r = str(f(self, *args, **kw))
+ r = unicode(f(self, *args, **kw))
try:
return self.nametowidget(r)
except KeyError:
- return makewidget(self, t, str(r))
+ return makewidget(self, t, r)
w.__doc__ = f.__doc__
return w
@@ -80,7 +80,7 @@ def nametowidget(self, name):
Tkinter.Misc.nametowidget = nametowidget
def makewidget(master, klass, path):
- path = str(path)
+ path = unicode(path)
self = types.InstanceType(klass)
self._name = path[len(master._w)+1:]
self._w = path
@@ -281,7 +281,7 @@ class ComboBox(Entry):
return self.tk.call(self._w, "bind", *args)
def getlistbox(self):
- r = str(self.tk.call(self._w, "getlistbox"))
+ r = unicode(self.tk.call(self._w, "getlistbox"))
try:
return self.nametowidget(r)
except KeyError:
--
1.6.5.rc1.49.ge970
>
> ------------------------------------------------------------------------------
> Come build with us! The BlackBerry(R) Developer Conference in SF, CA
> is the only developer event you need to attend this year. Jumpstart your
> developing skills, take BlackBerry mobile applications to market and stay
> ahead of the curve. Join us from November 9 - 12, 2009. Register now!
> http://p.sf.net/sfu/devconference
> _______________________________________________
> Emc-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/emc-users
>
------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Emc-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/emc-users