[dabo-users] Problem in Dabo demo

Author: MELKARTH@terra.es

Posted: 2011-05-18 at 18:21:15

Hi! I'm a total novice to Dabo and (almost) to Python.

I'm looking for a new tool to make backend programs, I just to use high level 4GL languages, like Progress or Windev.

I just started to read the PyCon tutorial and play with the demo. Looks great!

My question is simple. I have seen a difference between dTextBox and dEditBox: dTextBox in the demo doesn't allow me to type accented vowels in it (returns an error), while dEditBox works fine. The error is:

File "C:\Projects\dabo\demo\samples/dTextBox.py", line 56, in onTextKeyChar

cd, ch = evt.keyCode, evt.keyChar

UnicodeDecodeError: 'ascii' codec can't decode byte 0xe1 in position 0: ordinal not in range(128)

I am trying to localize my apps in spanish, so it's not a lot of change, but the range of chars is 256.

In my Python novice code I always write this line: # -*- coding: latin-1 -*- (I don't know if it helps).

I'd like to know if this little problem is difficult to -fix? (It doesn't seem to me, because dEditBox is ok !).

Thanks in advance, and excuse my bad english.

melkarth

--- StripMime Report -- processed MIME parts ---

multipart/alternative

text/plain (text body -- kept)

text/html

---

_______________________________________________

Post Messages to: Dabo-users@leafe.com

Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users

Searchable Archives: http://leafe.com/archives/search/dabo-users

This message: http://leafe.com/archives/byMID/15093126.848431305757275344.JavaMail.defaultUser@defaultHost

©2011 MELKARTH@terra.es