diff tools/editor/scripts/editor.py @ 582:5e04f6349894

* Improved the floatingtextrenderer. You can now set a background speech quad. * Added a speech quad example to rio de hola. * Little fix to the editor stuff.
author helios2000@33b003aa-7bff-0310-803a-e67f0ece8222
date Tue, 03 Aug 2010 13:57:12 +0000
parents b2feacaed53c
children e8a799239384
line wrap: on
line diff
--- a/tools/editor/scripts/editor.py	Mon Aug 02 10:26:21 2010 +0000
+++ b/tools/editor/scripts/editor.py	Tue Aug 03 13:57:12 2010 +0000
@@ -284,19 +284,19 @@
 		toolbox.adaptLayout()
 
 	def toggleBlocking(self, sender):
-		if self._mapview != None:
+		if self._mapview is not None:
 			for cam in self._mapview.getMap().getCameras():			
 				r = fife.BlockingInfoRenderer.getInstance(cam)
 				r.setEnabled(not r.isEnabled())
 
 	def toggleGrid(self, sender):
-		if self._mapview != None:
+		if self._mapview is not None:
 			for cam in self._mapview.getMap().getCameras():			
 				r = fife.GridRenderer.getInstance(cam)
 				r.setEnabled(not r.isEnabled())
 
 	def toggleCoordinates(self, sender):
-		if self._mapview != None:
+		if self._mapview is not None:
 			for cam in self._mapview.getMap().getCameras():
 				r = fife.CoordinateRenderer.getInstance(cam)
 				if not r.isEnabled():