On May 29, 2008, at 3:54 AM, Henning Hraban Ramm wrote:

> if I use gettext files in UTF-8 encoding (didn't check anything
> other), I get warnings like this:
>
> /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site- 
> packages/dabo/dabo/ui/uiwx/dMenuItem.py:66:
> UnicodeWarning: Unicode unequal comparison failed to convert both
> arguments to Unicode - interpreting them as being unequal
>  if cap != curr:


        Can you tell me what you get if you change _redefine() to add this  
debugging?

        def _redefine(self):
                """Combine the Caption and HotKey into the format needed by  
wxPython."""
                cap = self.Caption
                hk = self.HotKey
                if hk:
                        cap = "%s\t%s" % (cap, hk)
                curr = self.GetText()
                
                print "CAP", type(cap)
                print "HK", type(hk)
                print "CURR", type(curr)
                
                if cap != curr:
...


-- Ed Leafe





_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev
Searchable Archives: http://leafe.com/archives/search/dabo-dev
This message: http://leafe.com/archives/byMID/[EMAIL PROTECTED]

Reply via email to