On Jun 19, 2007, at 6:43 AM, Uwe Grauer wrote:

> Traceback (most recent call last):
>   File "test_dEditBox.py", line 34, in testValue
>     edt.Value = None
[snip]
> TypeError: String or Unicode type required

        I get it on OS X with wxPython 2.8.4. The error is pretty clear:  
wxPython TextCtrl objects cannot accept None as a value; they need a  
string-type value, and the docs say as much.

        I created some simple tests in raw wxPython, using both the SetValue 
() and newer ChangeValue() methods of the TextCtrl, in both single-  
and multi-line modes, and they both throw an error when you try to  
set a value of None. So IMO the test for dEditBox is correct, and the  
one for dTextBox is wrong, since it doesn't throw an error for some  
reason.

        So what behavior should Dabo text controls have? Should we support  
None as a value?

-- Ed Leafe
-- http://leafe.com
-- http://dabodev.com




_______________________________________________
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/dabo-users/[EMAIL PROTECTED]

Reply via email to