[Python-checkins] r65538 - sandbox/trunk/ttk-gsoc/src/idlelib/PyShell.py

guilherme.polo python-checkins at python.org
Tue Aug 5 03:25:40 CEST 2008


Author: guilherme.polo
Date: Tue Aug  5 03:25:40 2008
New Revision: 65538

Log:
I was already missing the possibility to close PyShell with close-tab hotkey.. added it back

Modified:
   sandbox/trunk/ttk-gsoc/src/idlelib/PyShell.py

Modified: sandbox/trunk/ttk-gsoc/src/idlelib/PyShell.py
==============================================================================
--- sandbox/trunk/ttk-gsoc/src/idlelib/PyShell.py	(original)
+++ sandbox/trunk/ttk-gsoc/src/idlelib/PyShell.py	Tue Aug  5 03:25:40 2008
@@ -853,10 +853,11 @@
                     break
 
                 if 'label' in curr_entry and 'Tab' in curr_entry['label'][-1]:
-                    menu.delete(i)
+                    if 'New' in ' '.join(curr_entry['label'][-1]):
+                        menu.delete(i)
                 i += 1
         self.text.unbind('<<new-tab>>')
-        self.text.unbind('<<close-tab>>')
+        #self.text.unbind('<<close-tab>>')
 
         #
         self.usetabs = True


More information about the Python-checkins mailing list