dabo Commit Revision 2764 Date: 2007-01-31 08:32:33 -0800 (Wed, 31 Jan 2007) Author: Ed
Changed: U trunk/dabo/ui/uiwx/dMessageBox.py
Log: Force messages that are passed to be strings. I was using this to display a calculation result, and it threw an error because it was passed a numeric value.
Diff: Modified: trunk/dabo/ui/uiwx/dMessageBox.py =================================================================== --- trunk/dabo/ui/uiwx/dMessageBox.py 2007-01-31 04:21:13 UTC (rev 2763) +++ trunk/dabo/ui/uiwx/dMessageBox.py 2007-01-31 16:32:33 UTC (rev 2764) @@ -15,6 +15,9 @@ class dMessageBox(wx.MessageDialog): def __init__(self, message, title, style): form = getForm() + # Force the message and title to strings + message = "%s" % message + title = "%s" % title wx.MessageDialog.__init__(self, form, message, title, style)
©2007 Ed Leafe |