[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
r6054 - trunk/gnue-forms/src/uidrivers/gtk2
From: |
johannes |
Subject: |
r6054 - trunk/gnue-forms/src/uidrivers/gtk2 |
Date: |
Fri, 23 Jul 2004 08:05:16 -0500 (CDT) |
Author: johannes
Date: 2004-07-23 08:05:15 -0500 (Fri, 23 Jul 2004)
New Revision: 6054
Modified:
trunk/gnue-forms/src/uidrivers/gtk2/ErrorHandler.py
Log:
Now it really supports unicode
Modified: trunk/gnue-forms/src/uidrivers/gtk2/ErrorHandler.py
===================================================================
--- trunk/gnue-forms/src/uidrivers/gtk2/ErrorHandler.py 2004-07-23 12:56:14 UTC
(rev 6053)
+++ trunk/gnue-forms/src/uidrivers/gtk2/ErrorHandler.py 2004-07-23 13:05:15 UTC
(rev 6054)
@@ -23,14 +23,19 @@
import gtk
import sys
+import types
+from gnue.common.apps import i18n
+
# -----------------------------------------------------------------------------
# Handle an error on startup of an application
# -----------------------------------------------------------------------------
def handleStartupError (errortext):
+ if isinstance (errortext, types.StringType):
+ errortext = unicode (errortext, i18n.encoding)
print
print '-' * 60
print u_("Error: %s") % errortext
@@ -38,7 +43,7 @@
_StartupErrorDisplay ("%s" % errortext)
- sys.exit()
+ sys.exit ()
def handleUncaughtException (extype, exvalue, traceback):
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- r6054 - trunk/gnue-forms/src/uidrivers/gtk2,
johannes <=