From jjvahsen at att.net Mon Jun 1 11:42:52 2020 From: jjvahsen at att.net (John J. Vahsen) Date: Mon, 1 Jun 2020 10:42:52 -0500 Subject: [Idle-dev] Idle Editor de-selects on right click (can't copy, cut, paste) References: Message-ID: An HTML attachment was scrubbed... URL: From tjreedy at udel.edu Tue Jun 2 13:05:20 2020 From: tjreedy at udel.edu (Terry Reedy) Date: Tue, 2 Jun 2020 13:05:20 -0400 Subject: [Idle-dev] Idle Editor de-selects on right click (can't copy, cut, paste) In-Reply-To: References: Message-ID: This bug disabled cut and copy (but not paste) on context menus in releases since about February. It was due to a bug in a patch for right-click behavior. It should not have been released in that state. I apologize. It has been fixed in repository for all current versions (3.7 to the future 3.10). The fix will be in all future releases. Note that one must click within the selection to have cut and copy active. On 6/1/2020 11:42 AM, John J. Vahsen wrote: > Idle editor automatically de-selects the selected region on right click, > under Linux-KDE Gui Framework. > This makes it difficult to cut, copy & paste. The menu items and shortcut keys still work. The latter are more convenient for some, but apparently less convenient for others. In 2012, there was dispute about whether to add cut/copy/paste to the context menu. Since this is the second report of this bug, we know that some people use them. > Python version 3.8.3 > TK version 8.6.10 > > Operating System: Manjaro Linux > KDE Plasma Version: 5.18.5 > KDE Frameworks Version: 5.70.0 > Qt Version: 5.14.2 > Kernel Version: 5.6.15-1-MANJARO > OS Type: 64-bit > Processors: 4 ? Intel? Core? i5-7400 CPU @ 3.00GHz > Memory: 15.5 GiB of RAM > > Problem also occurs on KDE-Neon Linux OS running Python 3.8.3 (TK 8.6.8) > Problem *NOT* present using Python 3.6.9. (TK 8.6.8) > on same system. -- Terry Jan Reedy From tjreedy at udel.edu Tue Jun 2 14:03:04 2020 From: tjreedy at udel.edu (Terry Reedy) Date: Tue, 2 Jun 2020 14:03:04 -0400 Subject: [Idle-dev] help In-Reply-To: References: Message-ID: On 1/9/2020 9:08 AM, Segundo Recalde wrote: > I'm currently using a macbook pro (mac OS Catalina). > I'm having trouble deleting the python IDLE. The macOS Python installer has a [] Customize option, which has a "[X] Install GUI applications" option. This is mainly about installing IDLE. Uncheck that and IDLE will not be installed. Rerun the installer, or better, upgrade and uncheck that box. If you do anything else, you are on your own. > I managed to delete everything but the 'about IDLE 3.8.1 (64 bit)' menu. When IDLE is installed and running, there is an 'IDLE' top menu entry with a drop down menu that contains an 'About IDLE' item. I don't know what else you might be talking about. In any case, see above on (re)installing Python. -- Terry Jan Reedy From tjreedy at udel.edu Tue Jun 2 14:43:44 2020 From: tjreedy at udel.edu (Terry Reedy) Date: Tue, 2 Jun 2020 14:43:44 -0400 Subject: [Idle-dev] Initial Window Focus In-Reply-To: <2CEF6F4E-3358-4B07-B5FA-04FF65CFBF90@furrypants.com> References: <2CEF6F4E-3358-4B07-B5FA-04FF65CFBF90@furrypants.com> Message-ID: On 1/1/2020 9:14 PM, Irv Kalb wrote: > With regard to the second item above, I would like to point out > something odd, and request a hopefully minor change in IDLE. I am using > IDLE 3.7.3 (with Python 3.7.3) on a Mac. ?I have my Mac set up so that > when I double-click on a Python source file, IDLE opens. On Windows, double-left-click on *.py runs the file in the Windows console. Have you changed the installed default? > ?When I > double-click on a Python file in the Finder, both the Shell and the > source file open in separate windows. On Windows, if IDLE is installed, right click context menu includes 'Edit with IDLE', which only open editor. The macOS behavior may be because applications has an app menu and macOS considers Shell to be the main app menu and the app menu is in some sense attached to that. >However, when this happens, the > Shell is given focus, then the source file opens (often covering the > Shell window). ?Therefore, I must click on the source file window to > give it keyboard focus before I can run or edit the file. > > I think it would be more appropriate to give focus to the chosen source > file window instead. ?My thinking is that if I select a Python file that > I want to edit or run, then the window associated with that file should > be given initial focus rather than the Shell window. I agree. But I have no idea how Finder opens not just one, but two windows. EditorWindow.__init__ contains 'self.focus_set', which is why new windows get focus. Perhaps you can see if this is true by watching closely enough. So macOS and macOS tcl/tk must shift focus back to the tk Text window used by Shell. This is out of the control of IDLE. Catalina 'fixed' this issue by no longer opening .py files in IDLE with double click. > (FYI: ?If IDLE is already open, and I go to the Mac Finder and > double-click on another Python file, then that file opens in IDLE and > *is* given focus.) > > > My use case might be slightly different than most because I do a lot of > grading of student homework files. ?I will typically download a > student's assignment, double-click on it, and press F5 to run it - and > nothing happens. ?That's because the Shell has focus instead of the > student's file. ?I find myself running into this (seemingly minor > problem) multiple times every day. ?If it is a simple change to give > focus to the selected Python source file, I would greatly appreciate it. > > (If you would like me to fill out a bug report for this, I would be glad > to do that.) Ge ahead, but mark is as a tkinter, macOS, Installation issue, assigned to ned.deily and not as an IDLE issue (which will assign it to me). -- Terry Jan Reedy From calebnord at yahoo.com Fri Jun 26 11:26:32 2020 From: calebnord at yahoo.com (Caleb Nord) Date: Fri, 26 Jun 2020 10:26:32 -0500 Subject: [Idle-dev] running a program on python 3.8.3 Message-ID: <49tghs062RzpDwm@mail.python.org> I?m trying to run a program on python 3.8.3, but when I click the run button it says invalid because it reads the python version at the top of the idle screen. If you know how to fix that I would be appreciated. Thanks for your time Sent from Mail for Windows 10 -------------- next part -------------- An HTML attachment was scrubbed... URL: From tjreedy at udel.edu Sat Jun 27 22:05:36 2020 From: tjreedy at udel.edu (Terry Reedy) Date: Sat, 27 Jun 2020 22:05:36 -0400 Subject: [Idle-dev] running a program on python 3.8.3 In-Reply-To: <49tghs062RzpDwm@mail.python.org> References: <49tghs062RzpDwm@mail.python.org> Message-ID: <0cb4343a-bee7-de6a-e2f0-935eca128038@udel.edu> On 6/26/2020 11:26 AM, Caleb Nord via IDLE-dev wrote: > I?m trying to run a program on python 3.8.3, but when I click the run > button it says invalid because it reads the python version at the top of > the idle screen.? If you know how to fix that I would be appreciated. My guess is that you saved a shell session as a .py file, loaded it into an editor window, and tried to run it without editing out the non-code text. Given """ Python 3.9.0b3 (tags/v3.9.0b3:b484871, Jun 9 2020, 20:36:59) [MSC v.1924 64 bit (AMD64)] on win32 Type "help", "copyright", "credits" or "license()" for more information. >>> a = 3 """ you have to remove everything before 'a = 3', and so on through the file. If you did something else, please explain. -- Terry Jan Reedy From tjreedy at udel.edu Sat Jun 27 22:05:36 2020 From: tjreedy at udel.edu (Terry Reedy) Date: Sat, 27 Jun 2020 22:05:36 -0400 Subject: [Idle-dev] running a program on python 3.8.3 In-Reply-To: <49tghs062RzpDwm@mail.python.org> References: <49tghs062RzpDwm@mail.python.org> Message-ID: <0cb4343a-bee7-de6a-e2f0-935eca128038@udel.edu> On 6/26/2020 11:26 AM, Caleb Nord via IDLE-dev wrote: > I?m trying to run a program on python 3.8.3, but when I click the run > button it says invalid because it reads the python version at the top of > the idle screen.? If you know how to fix that I would be appreciated. My guess is that you saved a shell session as a .py file, loaded it into an editor window, and tried to run it without editing out the non-code text. Given """ Python 3.9.0b3 (tags/v3.9.0b3:b484871, Jun 9 2020, 20:36:59) [MSC v.1924 64 bit (AMD64)] on win32 Type "help", "copyright", "credits" or "license()" for more information. >>> a = 3 """ you have to remove everything before 'a = 3', and so on through the file. If you did something else, please explain. -- Terry Jan Reedy