diff tools/editor/scripts/editor.py @ 562:e34b44afd428

Fixed the built in pychan dialogs as they didin't work at all. Updated the editor to support modal execution and now use the pychan dialog message boxes for displaying some error messages.
author prock@33b003aa-7bff-0310-803a-e67f0ece8222
date Thu, 24 Jun 2010 19:58:59 +0000
parents ee65aa323457
children 90d369c788c0
line wrap: on
line diff
--- a/tools/editor/scripts/editor.py	Thu Jun 24 18:40:30 2010 +0000
+++ b/tools/editor/scripts/editor.py	Thu Jun 24 19:58:59 2010 +0000
@@ -105,6 +105,8 @@
 		MainWindow.__init__(self, *args, **kwargs)
 		pychan.init(self.engine, debug=False)
 		
+		pychan.setupModalExecution(self.mainLoop,self.breakFromMainLoop)
+		
 	def _initTools(self):
 		""" Initializes tools """
 		self._pluginmanager = plugin.PluginManager(self.getSettings())