daboide Commit
Revision 409
Date: 2006-01-29 20:37:53 -0800 (Sun, 29 Jan 2006)
Author: ed

Changed:
U   trunk/Editor.py

Log:
Added a call to the editor's setInactive() method when the page it is on is 
hidden in the pageframe.


Diff:
Modified: trunk/Editor.py
===================================================================
--- trunk/Editor.py     2006-01-30 04:07:44 UTC (rev 408)
+++ trunk/Editor.py     2006-01-30 04:37:53 UTC (rev 409)
@@ -24,6 +24,7 @@
                self.editor.bindEvent(dEvents.TitleChanged, self.onTitleChanged)
                # Set the initial title
                dabo.ui.callAfter(self.onTitleChanged, None)
+               
        
        def onTitleChanged(self, evt):
                title = self.editor._title
@@ -33,6 +34,10 @@
        
        def onPageEnter(self, evt):
                self.editor.setFocus()
+       
+       
+       def onPageLeave(self, evt):
+               self.editor.setInactive()
 
 
                




_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev

Reply via email to