<div dir="ltr"><div>bug or annoyance in IDLE:</div>
<div><br>Acutually this has to do with the tk Text&nbsp;widget.<br>By default the Text widget binds mouse event &quot;&lt;Button-2&gt;&quot; to paste currently </div>
<div>highlighted text. Now i guess this would not be a problem EXCEPT for the fact that </div>
<div>IDLE does not have a Left/Right scroll bar, So the only way to scroll left and right is </div>
<div>to hold down &lt;B2&gt; and move, causing the &lt;B2&gt; binding to be called, and in turn </div>
<div>pasting text were you did not want it pasted.&nbsp;:&nbsp;-(<br><br>if you dont believe me try this:<br>1. open idle, then goto... file...New Window<br>2. in the New Window type a string<br>3. highlight a portion of the string.<br>
4. now press button 2 and the highlighted text will be pasted every time you click and release b2</div>
<div><br>Maybe there is a use for this but for me it just serves to frustrate me.</div>
<div><br>Ok back to the solution:<br>I know how to override this &lt;B2&gt; binding, i do it in all my programs that include a text editor. By inserting this line: text.bind_class(&#39;Text&#39;, &#39;&lt;Button-2&gt;&#39;, lambda e: None)...and</div>

<div>WHAMO no more annoying paste action...i love power :-D. I would love to code a </div>
<div>solution and submit it to someone but only problem is i have looked through every module in idlelib and i cant make heads or tails of it. So i will have to leave this to someone more qualified than I.</div>
<div>&nbsp;</div>
<div>Couple of ways to solve this:</div>
<div>&nbsp;</div>
<div>1. Allow users to rebind mouse events along with keyboard events...GOOD </div>
<div>&nbsp;(Power to the people!)</div>
<div>&nbsp;</div>
<div>2. hack the code..BAD</div>
<div>&nbsp;</div>
<div>3. write an extension that rebinds &lt;B2&gt; at&nbsp;runtime...UGLY&nbsp;</div>
<div>&nbsp;</div>
<div>4.&nbsp;Add a left/write scrollbar to IDLE...BAD...i find draging with the mouse to be quicker</div>
<div>&nbsp;</div>
<div><br>I really like Python IDLE except for this one little problem, <br>if anyone could&nbsp;help i would be very happy.<br>Thanks&nbsp; <br>&nbsp;</div></div>