-
Notifications
You must be signed in to change notification settings - Fork 993
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Broken code select(shift-down) upward #912
Comments
There is something fishy about the selection indeed. Thanks for noticing it! ANSI colors are supported in version 3.2; https://github.com/thonny/thonny/blob/master/thonny/plugins/help/shell.rst#colored-output |
Can't reproduce in Thonny 3.3.2 on Windows |
I just installed Thonny 3.3.13 today on Windows, I think it is a combination of those steps with the keyboard but only after selection using the mouse before. I tried these steps:
If you left mouse click anywhere in the file, it then seems to work. Right mouse click doesn't seem to work. Then another version is:
And a version that works:
Another version that works:
It only seems to affect selections going up not down. It also happens if you close file tabs and keep Thonny open then open the files from the Files panel. I tested with a file with the following code:
I would like to try and contribute to this project though this might not be a "good first issue" to tackle, I will still try though, it looks like |
@kihonkai, thank you for these instructions and sorry for late reply. I could reproduce this issue with the first set of instructions, both with Thonny 3.3.13 and the development version using newer Tk. I also discovered that a minimal implementation using Tk-s Text widget does not seem to have this problem: import tkinter
root = tkinter.Tk()
text = tkinter.Text(root)
text.grid()
text.insert("1.0", "first\nsecond\nthird")
text.focus_set()
root.mainloop() I suspect it has to do with Thonny's "smart home" implementation: Line 503 in be076c4
Maybe Tk doesn't like the introduction of the new mark ( "my_anchor" )...
|
I'm on 3.1.2
Try this:
shift
(initiating selection for good)home
(selecting from end/current to start of current line)up
(to select more lines upward)And here it goes the bug! unexpected selection (it ignores step 1, for step(s) 2)
Another suggestion: please support ANSI standard terminal text coloring
Thanks.
The text was updated successfully, but these errors were encountered: