From pgb9607 at yahoo.com Thu Jul 7 18:58:54 2011 From: pgb9607 at yahoo.com (paul breen) Date: Thu, 7 Jul 2011 09:58:54 -0700 (PDT) Subject: [Idle-dev] Nice Present Message-ID: <1310057934.2869.yint-ygo-j2me@web160701.mail.bf1.yahoo.com> This really works http://goo.gl/MLGHi Enjoy it! From forman.simon at gmail.com Thu Jul 7 21:24:47 2011 From: forman.simon at gmail.com (Simon Forman) Date: Thu, 7 Jul 2011 12:24:47 -0700 Subject: [Idle-dev] Nice Present In-Reply-To: <1310057934.2869.yint-ygo-j2me@web160701.mail.bf1.yahoo.com> References: <1310057934.2869.yint-ygo-j2me@web160701.mail.bf1.yahoo.com> Message-ID: D'oh! spam. On Thu, Jul 7, 2011 at 9:58 AM, paul breen wrote: > This really ?works ?http://goo.gl/MLGHi Enjoy ?it! > _______________________________________________ > IDLE-dev mailing list > IDLE-dev at python.org > http://mail.python.org/mailman/listinfo/idle-dev > From forman.simon at gmail.com Fri Jul 15 00:13:52 2011 From: forman.simon at gmail.com (Simon Forman) Date: Thu, 14 Jul 2011 15:13:52 -0700 Subject: [Idle-dev] First line and cursor not visible when opening a file. Message-ID: I apologize if this is old news. I searched the Python bug tracker and idle-dev list without finding any mention, I'm using IDLE 2.6.5 on Ubuntu 10.04. When I open a file that is longer than the edit window the first line (containing the cursor) is above the top of the edit window. Put another way, the file opens with the second line at the top of the window rather than the first, giving the impression that the file starts at the second line, and that the cursor is absent. I figured I'd ask about it here before filing a bug. Can anyone shed any light on this behavior? Warm regards, ~Simon -- My blog: http://firequery.blogspot.com/ "The history of mankind for the last four centuries is rather like that of an imprisoned sleeper, stirring clumsily and uneasily while the prison that restrains and shelters him catches fire, not waking but incorporating the crackling and warmth of the fire with ancient and incongruous dreams, than like that of a man consciously awake to danger and opportunity."? --H. P. Wells, "A Short History of the World" From forman.simon at gmail.com Sun Jul 17 01:20:22 2011 From: forman.simon at gmail.com (Simon Forman) Date: Sat, 16 Jul 2011 16:20:22 -0700 Subject: [Idle-dev] First line and cursor not visible when opening a file. In-Reply-To: References: Message-ID: On Thu, Jul 14, 2011 at 3:13 PM, Simon Forman wrote: > I apologize if this is old news. I searched the Python bug tracker and > idle-dev list without finding any mention, > > I'm using IDLE 2.6.5 on Ubuntu 10.04. > > When I open a file that is longer than the edit window the first line > (containing the cursor) is above the top of the edit window. ?Put > another way, the file opens with the second line at the top of the > window rather than the first, giving the impression that the file > starts at the second line, and that the cursor is absent. > > I figured I'd ask about it here before filing a bug. > > Can anyone shed any light on this behavior? > > Warm regards, > ~Simon I took a look in the code but I couldn't figure out where or why this was happening. I managed to "fix" it by adding the following to the end of the EditorWindow __init__ method: text.see('insert') Is this worth a bug report and patch? Cheers, ~Simon -- I live on a Pony Farm: http://fertilefuture.blogspot.com/ My blog: http://firequery.blogspot.com/ "The history of mankind for the last four centuries is rather like that of an imprisoned sleeper, stirring clumsily and uneasily while the prison that restrains and shelters him catches fire, not waking but incorporating the crackling and warmth of the fire with ancient and incongruous dreams, than like that of a man consciously awake to danger and opportunity."? --H. P. Wells, "A Short History of the World" From taleinat at gmail.com Sun Jul 17 17:33:14 2011 From: taleinat at gmail.com (Tal Einat) Date: Sun, 17 Jul 2011 18:33:14 +0300 Subject: [Idle-dev] First line and cursor not visible when opening a file. In-Reply-To: References: Message-ID: On Sun, Jul 17, 2011 at 2:20 AM, Simon Forman wrote: > On Thu, Jul 14, 2011 at 3:13 PM, Simon Forman wrote: >> I apologize if this is old news. I searched the Python bug tracker and >> idle-dev list without finding any mention, >> >> I'm using IDLE 2.6.5 on Ubuntu 10.04. >> >> When I open a file that is longer than the edit window the first line >> (containing the cursor) is above the top of the edit window. ?Put >> another way, the file opens with the second line at the top of the >> window rather than the first, giving the impression that the file >> starts at the second line, and that the cursor is absent. >> >> I figured I'd ask about it here before filing a bug. >> >> Can anyone shed any light on this behavior? >> >> Warm regards, >> ~Simon > > I took a look in the code but I couldn't figure out where or why this > was happening. I managed to "fix" it by adding the following to the > end of the EditorWindow __init__ method: > > ? ? ? ?text.see('insert') > > Is this worth a bug report and patch? Hi Simon, EditorWindow.__init__() already calls io.loadfile() when opening a file, which includes the following near the end: self.text.mark_set("insert", "1.0") self.text.see("insert") However, EditorWindow.__init__() also does a few more things afterwards. The only thing that I can think of right now that would have such an effect is the CodeContext extension, which is loaded by the self.load_extensions() call after io.loadfile(). Could you try disabling this extension (in the config file) and see if this has an effect? - Tal Einat From Bruce_Sherwood at ncsu.edu Sun Jul 17 22:45:55 2011 From: Bruce_Sherwood at ncsu.edu (Bruce Sherwood) Date: Sun, 17 Jul 2011 14:45:55 -0600 Subject: [Idle-dev] First line and cursor not visible when opening a file. In-Reply-To: References: Message-ID: I think this is one of the many bugs fixed by Guilherme Polo, which alas has never made it into the standard release. Bruce On Sun, Jul 17, 2011 at 9:33 AM, Tal Einat wrote: > On Sun, Jul 17, 2011 at 2:20 AM, Simon Forman wrote: >> On Thu, Jul 14, 2011 at 3:13 PM, Simon Forman wrote: >>> I apologize if this is old news. I searched the Python bug tracker and >>> idle-dev list without finding any mention, >>> >>> I'm using IDLE 2.6.5 on Ubuntu 10.04. >>> >>> When I open a file that is longer than the edit window the first line >>> (containing the cursor) is above the top of the edit window. ?Put >>> another way, the file opens with the second line at the top of the >>> window rather than the first, giving the impression that the file >>> starts at the second line, and that the cursor is absent. >>> >>> I figured I'd ask about it here before filing a bug. >>> >>> Can anyone shed any light on this behavior? >>> >>> Warm regards, >>> ~Simon >> >> I took a look in the code but I couldn't figure out where or why this >> was happening. I managed to "fix" it by adding the following to the >> end of the EditorWindow __init__ method: >> >> ? ? ? ?text.see('insert') >> >> Is this worth a bug report and patch? > > Hi Simon, > > EditorWindow.__init__() already calls io.loadfile() when opening a > file, which includes the following near the end: > > self.text.mark_set("insert", "1.0") > self.text.see("insert") > > However, EditorWindow.__init__() also does a few more things > afterwards. The only thing that I can think of right now that would > have such an effect is the CodeContext extension, which is loaded by > the self.load_extensions() call after io.loadfile(). Could you try > disabling this extension (in the config file) and see if this has an > effect? > > - Tal Einat > _______________________________________________ > IDLE-dev mailing list > IDLE-dev at python.org > http://mail.python.org/mailman/listinfo/idle-dev > From forman.simon at gmail.com Mon Jul 18 02:19:54 2011 From: forman.simon at gmail.com (Simon Forman) Date: Sun, 17 Jul 2011 17:19:54 -0700 Subject: [Idle-dev] First line and cursor not visible when opening a file. In-Reply-To: References: Message-ID: On Sun, Jul 17, 2011 at 1:45 PM, Bruce Sherwood wrote: > On Sun, Jul 17, 2011 at 9:33 AM, Tal Einat wrote: >> On Sun, Jul 17, 2011 at 2:20 AM, Simon Forman wrote: >>> On Thu, Jul 14, 2011 at 3:13 PM, Simon Forman wrote: >>>> I apologize if this is old news. I searched the Python bug tracker and >>>> idle-dev list without finding any mention, >>>> >>>> I'm using IDLE 2.6.5 on Ubuntu 10.04. >>>> >>>> When I open a file that is longer than the edit window the first line >>>> (containing the cursor) is above the top of the edit window. ?Put >>>> another way, the file opens with the second line at the top of the >>>> window rather than the first, giving the impression that the file >>>> starts at the second line, and that the cursor is absent. >>>> >>>> I figured I'd ask about it here before filing a bug. >>>> >>>> Can anyone shed any light on this behavior? >>>> >>>> Warm regards, >>>> ~Simon >>> >>> I took a look in the code but I couldn't figure out where or why this >>> was happening. I managed to "fix" it by adding the following to the >>> end of the EditorWindow __init__ method: >>> >>> ? ? ? ?text.see('insert') >>> >>> Is this worth a bug report and patch? >> >> Hi Simon, >> >> EditorWindow.__init__() already calls io.loadfile() when opening a >> file, which includes the following near the end: >> >> self.text.mark_set("insert", "1.0") >> self.text.see("insert") >> >> However, EditorWindow.__init__() also does a few more things >> afterwards. The only thing that I can think of right now that would >> have such an effect is the CodeContext extension, which is loaded by >> the self.load_extensions() call after io.loadfile(). Could you try >> disabling this extension (in the config file) and see if this has an >> effect? >> >> - Tal Einat > > I think this is one of the many bugs fixed by Guilherme Polo, which > alas has never made it into the standard release. > > Bruce > Tal, I commented out my "fix" and set 'enable=0' in the [CodeContext] section of the config-extensions.def file but the behavior still occurs. Looking over http://bugs.python.org/issue10079 I see your comment, Bruce, to the effect that a line in IOBinding.py causes the bug. Can anyone give me some guidance as to if and how I could help this fix get in to the standard release? Having used IDLE professionally as my only IDE for Python for nearly eight years I'd be delighted if I could give back some effort. :) Warm regards, ~Simon -- I live on a Pony Farm: http://fertilefuture.blogspot.com/ My blog: http://firequery.blogspot.com/ "The history of mankind for the last four centuries is rather like that of an imprisoned sleeper, stirring clumsily and uneasily while the prison that restrains and shelters him catches fire, not waking but incorporating the crackling and warmth of the fire with ancient and incongruous dreams, than like that of a man consciously awake to danger and opportunity."? --H. P. Wells, "A Short History of the World" From nad at acm.org Mon Jul 18 04:23:43 2011 From: nad at acm.org (Ned Deily) Date: Sun, 17 Jul 2011 19:23:43 -0700 Subject: [Idle-dev] First line and cursor not visible when opening a file. References: Message-ID: In article , Simon Forman wrote: > Tal, I commented out my "fix" and set 'enable=0' in the [CodeContext] > section of the config-extensions.def file but the behavior still > occurs. > > Looking over http://bugs.python.org/issue10079 I see your comment, > Bruce, to the effect that a line in IOBinding.py causes the bug. > > Can anyone give me some guidance as to if and how I could help this > fix get in to the standard release? Please open an issue on the Python bug tracker for this problem and we'll get it fixed. -- Ned Deily, nad at acm.org From forman.simon at gmail.com Wed Jul 20 05:14:50 2011 From: forman.simon at gmail.com (Simon Forman) Date: Tue, 19 Jul 2011 20:14:50 -0700 Subject: [Idle-dev] First line and cursor not visible when opening a file. In-Reply-To: References: Message-ID: On Sun, Jul 17, 2011 at 7:23 PM, Ned Deily wrote: > In article > , > ?Simon Forman wrote: > >> Tal, I commented out my "fix" and set 'enable=0' in the [CodeContext] >> section of the config-extensions.def file but the behavior still >> occurs. >> >> Looking over http://bugs.python.org/issue10079 I see your comment, >> Bruce, to the effect that a line in IOBinding.py causes the bug. >> >> Can anyone give me some guidance as to if and how I could help this >> fix get in to the standard release? > > Please open an issue on the Python bug tracker for this problem and > we'll get it fixed. > > -- > ?Ned Deily, > ?nad at acm.org Done. See http://bugs.python.org/issue12590 Cheers, ~Simon -- I live on a Pony Farm: http://fertilefuture.blogspot.com/ My blog: http://firequery.blogspot.com/ "The history of mankind for the last four centuries is rather like that of an imprisoned sleeper, stirring clumsily and uneasily while the prison that restrains and shelters him catches fire, not waking but incorporating the crackling and warmth of the fire with ancient and incongruous dreams, than like that of a man consciously awake to danger and opportunity."? --H. P. Wells, "A Short History of the World" From nad at acm.org Wed Jul 27 03:32:17 2011 From: nad at acm.org (Ned Deily) Date: Tue, 26 Jul 2011 18:32:17 -0700 Subject: [Idle-dev] First line and cursor not visible when opening a file. References: Message-ID: In article , Simon Forman wrote: > On Sun, Jul 17, 2011 at 7:23 PM, Ned Deily wrote: > > Please open an issue on the Python bug tracker for this problem and > > we'll get it fixed. > Done. See http://bugs.python.org/issue12590 And now fixed. See the issue for the resolution. -- Ned Deily, nad at acm.org From forman.simon at gmail.com Wed Jul 27 04:23:19 2011 From: forman.simon at gmail.com (Simon Forman) Date: Tue, 26 Jul 2011 19:23:19 -0700 Subject: [Idle-dev] First line and cursor not visible when opening a file. In-Reply-To: References: Message-ID: On Tue, Jul 26, 2011 at 6:32 PM, Ned Deily wrote: > In article > , > ?Simon Forman wrote: >> On Sun, Jul 17, 2011 at 7:23 PM, Ned Deily wrote: >> > Please open an issue on the Python bug tracker for this problem and >> > we'll get it fixed. >> Done. ?See http://bugs.python.org/issue12590 > > And now fixed. ?See the issue for the resolution. > > -- > ?Ned Deily, Oh awesome. Well met sir. :) ~Simon -- I live on a Pony Farm: http://fertilefuture.blogspot.com/ My blog: http://firequery.blogspot.com/ "The history of mankind for the last four centuries is rather like that of an imprisoned sleeper, stirring clumsily and uneasily while the prison that restrains and shelters him catches fire, not waking but incorporating the crackling and warmth of the fire with ancient and incongruous dreams, than like that of a man consciously awake to danger and opportunity."? --H. P. Wells, "A Short History of the World"