[gcompris] lang, fixed a python exec error case
- From: Bruno Coudoin <bcoudoin src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gcompris] lang, fixed a python exec error case
- Date: Wed, 13 Nov 2013 17:41:36 +0000 (UTC)
commit 168e5967801b968012cc84d5334f5f2bde4783ee
Author: Bruno Coudoin <bruno coudoin free fr>
Date: Wed Nov 13 18:39:56 2013 +0100
lang, fixed a python exec error case
If we have an error in the startup sequence a
variable was used non initialized.
src/lang-activity/lang.py | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/lang-activity/lang.py b/src/lang-activity/lang.py
index 336028e..538f2be 100644
--- a/src/lang-activity/lang.py
+++ b/src/lang-activity/lang.py
@@ -77,6 +77,8 @@ class Gcompris_lang:
self.langLib = LangLib(gcompris.DATA_DIR + "/lang/words.xml")
self.chapters = self.langLib.getChapters()
+ self.currentExercise = None
+ self.currentExerciseModes = []
if self.gcomprisBoard.mode == "":
gcompris.utils.dialog("ERROR, missing 'mode' in the xml menu to specify the chapter",
@@ -107,8 +109,6 @@ dialogue to\nenable the sound."), None)
gcompris.bar_set_level(self.gcomprisBoard)
- self.currentExerciseModes = []
- self.currentExercise = None
self.currentLesson = self.langLib.getLesson(self.currentChapterName,
self.gcomprisBoard.level - 1)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]