<div dir="ltr"><div>bug or annoyance in IDLE:</div>
<div><br>Acutually this has to do with the tk Text widget.<br>By default the Text widget binds mouse event "<Button-2>" 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 <B2> and move, causing the <B2> binding to be called, and in turn </div>
<div>pasting text were you did not want it pasted. : -(<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 <B2> binding, i do it in all my programs that include a text editor. By inserting this line: text.bind_class('Text', '<Button-2>', 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> </div>
<div>Couple of ways to solve this:</div>
<div> </div>
<div>1. Allow users to rebind mouse events along with keyboard events...GOOD </div>
<div> (Power to the people!)</div>
<div> </div>
<div>2. hack the code..BAD</div>
<div> </div>
<div>3. write an extension that rebinds <B2> at runtime...UGLY </div>
<div> </div>
<div>4. Add a left/write scrollbar to IDLE...BAD...i find draging with the mouse to be quicker</div>
<div> </div>
<div><br>I really like Python IDLE except for this one little problem, <br>if anyone could help i would be very happy.<br>Thanks <br> </div></div>