Hraban :
Mmm. . . I know the difference between  'c'  and  u'c', but as I'm diving
into the modules of the demo, I'm getting lost. . . 

>Just making the strings in the handlers unicode (Melkart: enter a 'u'
>in front of the quotes) fixes the problem.

Sorry, what handler is that? 
With my current level of python, I only see a difference between the
dHyperLink demo (that contains a pair of text boxes and works ok) and
dTextBox (that does not), and this difference is the calling to:

txt.bindEvent(dEvents.KeyChar, self.onTextKeyChar)    in the dTextBox demo.

In fact, if I comment this line, the text box works ok. So I go to sniff
around .egg\dabo\dEvents.py -> class KeyChar(KeyEvent) , and there I find
only 1 line: "pass". I Suppose this class has been subclassed somewhere...
got a headache, goto get an aspirin. Ah, the old "goto" spaghetti languages,
what a nostalgia!  

Thank you for your patience,
melkarth

-----Original Message-----
From: [email protected] [mailto:[email protected]] On
Behalf Of Henning Hraban Ramm
Sent: viernes, 20 de mayo de 2011 11:01
To: Dabo list Users
Subject: Re: [dabo-users] Reenv: Problem in Dabo demo


Am 2011-05-20 um 09:06 schrieb melkarth0:

> Ok, thank you, Hraban. I've already checked that dTextBox works fine 
> outside the dabo demo; I'm worried about it no more. I'll try to play 
> with your solution, but my priority now is to keep learning Dabo.

But since you're learning Python as you go, it might be a good example to
keep attention to Python's quirks like ASCII vs. Unicode "strings".


Greetlings from Lake Constance!
Hraban
---
http://www.fiee.net
https://www.cacert.org (I'm an assurer)




_______________________________________________
Post Messages to: [email protected]
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/[email protected]
t

_______________________________________________
Post Messages to: [email protected]
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/[email protected]

Reply via email to