[Python-checkins] r65304 - sandbox/trunk/ttk-gsoc/src/idlelib/EditorWindow.py
guilherme.polo
python-checkins at python.org
Wed Jul 30 14:36:27 CEST 2008
Author: guilherme.polo
Date: Wed Jul 30 14:36:27 2008
New Revision: 65304
Log:
Generates a virtual tab-created event after a tab is created
Modified:
sandbox/trunk/ttk-gsoc/src/idlelib/EditorWindow.py
Modified: sandbox/trunk/ttk-gsoc/src/idlelib/EditorWindow.py
==============================================================================
--- sandbox/trunk/ttk-gsoc/src/idlelib/EditorWindow.py (original)
+++ sandbox/trunk/ttk-gsoc/src/idlelib/EditorWindow.py Wed Jul 30 14:36:27 2008
@@ -220,7 +220,7 @@
self.showerror = tkMessageBox.showerror
def new_callback(self, event):
- # XXX
+ # XXX ??
current_page = self.current_page()
dirname, basename = current_page.io.defaultfilename()
self.flist.new(dirname)
@@ -268,6 +268,7 @@
text.focus_set()
self.apply_bindings()
+ self.top.event_generate('<<tab-created>>')
return "break"
More information about the Python-checkins
mailing list