[Pymoul-svn] SF.net SVN: pymoul: [64] pymoul/trunk/src/moul/qt/mainwindow.py
Status: Alpha
Brought to you by:
tiran
From: <ti...@us...> - 2007-01-23 23:01:31
|
Revision: 64 http://pymoul.svn.sourceforge.net/pymoul/?rev=64&view=rev Author: tiran Date: 2007-01-23 15:01:32 -0800 (Tue, 23 Jan 2007) Log Message: ----------- Some error handlers for the demo Modified Paths: -------------- pymoul/trunk/src/moul/qt/mainwindow.py Modified: pymoul/trunk/src/moul/qt/mainwindow.py =================================================================== --- pymoul/trunk/src/moul/qt/mainwindow.py 2007-01-23 22:53:02 UTC (rev 63) +++ pymoul/trunk/src/moul/qt/mainwindow.py 2007-01-23 23:01:32 UTC (rev 64) @@ -101,8 +101,15 @@ """ inipath = lookupDir('ini') self._graphics_ini = gini = GraphicsIni() - gini.open(inipath) - + try: + gini.open(inipath) + except Exception, msg: + LOG.exception("Something bad happened while parsing the graphics.ini file") + QtGui.QMessageBox.critical(None, + self.trUtf8("Error opening graphics.ini"), + self.trUtf8("""Something bad happend while opening the graphics.ini\n%s""" % msg)) + return + length = len(videoModes) - 1 self.sl_gra_screenres.setMaximum(length) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |