gcompris r3716 - in branches/GCOMPRIS_8_3: . src/boards/python



Author: bcoudoin
Date: Sat Jan 31 13:31:50 2009
New Revision: 3716
URL: http://svn.gnome.org/viewvc/gcompris?rev=3716&view=rev

Log:
	Fixed python execution issue at line 190, in pause
	self.entry.hide() was called even in the button mode where
	there is no GTK entry selector.



Modified:
   branches/GCOMPRIS_8_3/ChangeLog
   branches/GCOMPRIS_8_3/src/boards/python/login.py

Modified: branches/GCOMPRIS_8_3/src/boards/python/login.py
==============================================================================
--- branches/GCOMPRIS_8_3/src/boards/python/login.py	(original)
+++ branches/GCOMPRIS_8_3/src/boards/python/login.py	Sat Jan 31 13:31:50 2009
@@ -89,6 +89,7 @@
 
     self.users = self.check_unique_id(users)
 
+    self.entry = None
     if eval(self.config_dict['entry_text']):
       self.entry_text()
     else:
@@ -186,10 +187,11 @@
     print("Gcompris_login pause. %i" % pause)
     # There is a problem with GTK widgets, they are not covered by the help
     # We hide/show them here
-    if(pause):
-      self.entry.hide()
-    else:
-      self.entryt.show()
+    if self.entry:
+      if(pause):
+        self.entry.hide()
+      else:
+        self.entry.show()
 
 
   def set_level(self, level):



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]