[Python-checkins] r65729 - sandbox/trunk/ttk-gsoc/src/idlelib/IOBinding.py

guilherme.polo python-checkins at python.org
Sun Aug 17 01:11:54 CEST 2008


Author: guilherme.polo
Date: Sun Aug 17 01:11:53 2008
New Revision: 65729

Log:
text.see("insert") seems to not be needed and was causing a display bug here in Linux

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

Modified: sandbox/trunk/ttk-gsoc/src/idlelib/IOBinding.py
==============================================================================
--- sandbox/trunk/ttk-gsoc/src/idlelib/IOBinding.py	(original)
+++ sandbox/trunk/ttk-gsoc/src/idlelib/IOBinding.py	Sun Aug 17 01:11:53 2008
@@ -250,7 +250,7 @@
         try:
             # open the file in binary mode so that we can handle
             #   end-of-line convention ourselves.
-            f = open(filename,'rb')
+            f = open(filename, 'rb')
             chars = f.read()
             f.close()
         except IOError, msg:
@@ -273,7 +273,7 @@
         self.reset_undo()
         self.set_filename(filename)
         self.text.mark_set("insert", "1.0")
-        self.text.see("insert")
+        #self.text.see("insert")
         self.updaterecentfileslist(filename)
         return True
 


More information about the Python-checkins mailing list