This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author terry.reedy
Recipients Al.Sweigart, littleq0903, ned.deily, paulsfo, roger.serwy, suddha.sourav, taleinat, terry.reedy
Date 2016-05-13.05:48:16
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1463118496.61.0.984485849847.issue15786@psf.upfronthosting.co.za>
In-reply-to
Content
I experimented more with 3.5.1, Win 10 and formulated a question and hypothesis.

In a text widget, pressing button 1 (usually the left) moves the cursor to the nearest between-character slice line.  Hold the button down allows selecting text.  Releasing and pressing again selects a word after moving the cursor.  Pretty standard behavior, independent of IDLE.  I believe the bindings are Text class rather than instance bindings.

When a completion box is present, button 1 down outside the box dismiss the box and moves the cursor.  I believe this is intended.  I don't know how general this behavior is.

The IDLE completion box binds the button *release* to, I believe, "move cursor to line clicked and display line in text".  A double click is supposed to do something more.  So the button1 press event goes to the Text, which dismisses the popup and moves the cursor.

Question: does the text widget freezes on button down or not until button up.  The experiment is to press and hold the button while moving the mouse.  Does the cursor move and select text while the button is down, or does it freeze immediately.  Paul, could you try this?

Hypothesis (cause): a delicate timing issue? Is the button-up event somehow 'half-caught'?

Hypothesis (fix): prevent the text from seeing or acting on the button down event.  It should be possible to have the completion box catch the down event first and return 'break'.  My first attempt failed but I was too tired to continue.
History
Date User Action Args
2016-05-13 05:48:16terry.reedysetrecipients: + terry.reedy, taleinat, ned.deily, roger.serwy, Al.Sweigart, littleq0903, suddha.sourav, paulsfo
2016-05-13 05:48:16terry.reedysetmessageid: <1463118496.61.0.984485849847.issue15786@psf.upfronthosting.co.za>
2016-05-13 05:48:16terry.reedylinkissue15786 messages
2016-05-13 05:48:16terry.reedycreate