On 08/22/2012 at 23:08 C Anthony Risinger <[email protected]> wrote:
> On Wed, Aug 22, 2012 at 12:47 AM, Rene Maurer <[email protected]>
> wrote:
>>
>> I have no time to do really deep testing. But as far as i can see my
>> non-trival application (using timers, json rpc etc etc) runs without
>> any serious troubles! (i have an unicode exception in a dialog and i
>> assume some text colors must be defined in css ...as they are white
>> instead of black). I also have the impression that giwebkit is
>> really fast (at least faster than python webkit).
> 
> i'd be interested in hearing more about the unicode exception when you
> get a chance (there is plenty to do, no rush there ...).

I have just tried the following snippets (embedded in my app):

This one works:
  tb = TextBox()
  tb.setText(u"oaueau")

This one doesn't:
  tb = TextBox()
  tb.setText(u"öäüéàè")

=> File
"/home/rene/Local/python/pyjs/pyjs/library/pyjamas/ui/TextBoxBase.py",
line 113, in setText DOM.setAttribute(self.getElement(), "value",
str(text)) UnicodeEncodeError: 'ascii' codec can't encode characters in
position 0-11: ordinal not in range(128)

This one works again:
  tb = TextBox()
  tb.setText(u"öäüéàè".encode("utf-8"))


Besides....

I have to use pyjd explicitly to start the "desktop":

../../pyjs/bin/pyjd Desktop.py

When I use python I have:

python2 Desktop.py
Traceback (most recent call last):
  File "Desktop.py", line 8, in <module>
    import pyjd
  File "/usr/lib/python2.7/site-packages/pyjd/__init__.py", line 5, in
<module> from pyjs.runners import RunnerManager
ImportError: No module named runners

"import pyjd" is the very first statement in Desktop.py. I have cleaned
everything and installed from scratch. So maybe I have just forgotten
something.

HTH René

-- 



Reply via email to