diff engine/python/fife/extensions/pychan/widgets/widget.py @ 587:2de93d36ca6d

Added getNextLocation() to the python interface file for the abstract pather. Fixed a problem when an instance changes rotation and does not notify the instance change listeners. Fixed a bug in SDLImage where m_isalphaoptimized was incorrectly set. Updated instance to no longer derive from ResourceClass. It now derives from FifeClass directly. fixes[t:475]
author prock@33b003aa-7bff-0310-803a-e67f0ece8222
date Wed, 11 Aug 2010 16:52:57 +0000
parents dc19d9e38880
children
line wrap: on
line diff
--- a/engine/python/fife/extensions/pychan/widgets/widget.py	Sun Aug 08 22:54:11 2010 +0000
+++ b/engine/python/fife/extensions/pychan/widgets/widget.py	Wed Aug 11 16:52:57 2010 +0000
@@ -182,8 +182,8 @@
 		the is_focusable property.
 		
 		"""
-
-		self.real_widget.requestFocus()
+		if self.isVisible():
+			self.real_widget.requestFocus()
 
 	def match(self,**kwargs):
 		"""