Robin Dunn wrote:
Michele Petrazzo wrote:
>Robin Dunn wrote:
Michele Petrazzo wrote:
My application call a wx.MessageBox:
File "hylapex.py", line 954, in contr_new_fax
wx.MessageBox(str(title), str(msg))
File
"/",
line 483, in MessageBox
return _misc_.MessageBox(*args, **kwargs)
What is the rest of the error message?
>>
>Excuse me:
>File "hylapex.py", line 943, in contr_new_fax
>wx.MessageBox(str(msg), str(title), wx.ICN_INFRMATIN)
>File
>"/",
>line 483, in MessageBox
>return _misc_.MessageBox(*args, **kwargs)
>exceptions.TypeError: coercing to Unicode: need string or buffer, int
>found
>>
>Note that this happen _after_ the message are shown, so when I press on
>"" button.
What are the values of title and msg?
code
print repr(msg), repr(title), type(msg), type(title)
wx.MessageBox(str(msg), str(title), wx.ICN_INFRMATIN)
michele:~$ python hylapex.py
'You have 10 new fax' 'New fax' <type 'str'<type 'str'>
<-cut not wx code->
File "hylapex.py", line 943, in contr_new_fax
wx.MessageBox(str(msg), str(title), wx.ICN_INFRMATIN)
File
"/", line
483, in MessageBox
return _misc_.MessageBox(*args, **kwargs)
exceptions.TypeError: coercing to Unicode: need string or buffer, int found
Michele
To unsubscribe, e-mail: wxPython-users-unsubscribe (AT) lists (DOT) wxwidgets.org
For additional commands, e-mail: wxPython-users-help (AT) lists (DOT) wxwidgets.org