From andre.roberge at gmail.com Sun Dec 8 14:30:33 2019 From: andre.roberge at gmail.com (=?UTF-8?Q?Andr=C3=A9_Roberge?=) Date: Sun, 8 Dec 2019 15:30:33 -0400 Subject: [Idle-dev] About extensions ... Message-ID: Hello everyone, Is there any way to add an extension to IDLE without putting it "by hand" in the idlelib directory but installing it from pypi.org and using some configuration settings to let IDLE know where to find such an extension? I've looked at the code to see if this was possible, but have not seen a way to do so and I am wondering if I missed something. Andr? Roberge -------------- next part -------------- An HTML attachment was scrubbed... URL: From tjreedy at udel.edu Sun Dec 8 15:38:01 2019 From: tjreedy at udel.edu (Terry Reedy) Date: Sun, 8 Dec 2019 15:38:01 -0500 Subject: [Idle-dev] About extensions ... In-Reply-To: References: Message-ID: <009aafbc-2a0c-916f-cd45-00c08fce45f0@udel.edu> On 12/8/2019 2:30 PM, Andr? Roberge wrote: > Is there any way to add an extension to IDLE without putting it "by > hand" in the idlelib directory but installing it from pypi.org > and using some configuration settings to let IDLE know > where to find such an extension? The editor.EditorWindow.load_extension import code first tries to import an extension from idlelib and then from anywhere on sys.path, in particular, I presume, site-packages. (A failure is printed to the console.) try: mod = importlib.import_module('.' + fname, package=__package__) except (ImportError, TypeError): mod = importlib.import_module(fname) What is required is the addition of a section to config-extensions.def. When pip installs a package, I believe it can run a setup file in the package that can do this. I don't know how, but I would agree to adding instructions to those already at the top of that file. I know that IdleX has code to add a section, as well as monkey-patching other idlelib files, but I don't know if this is done automatically on installation or if users have to separately invoke IdleX setup. From david.lindhe at gmail.com Mon Dec 30 09:13:29 2019 From: david.lindhe at gmail.com (David) Date: Mon, 30 Dec 2019 15:13:29 +0100 Subject: [Idle-dev] Wishlist: Make executables + startup option Message-ID: Hello! Thank you for a great IDE. Me and my son are using it to learn programming. I have two things I would like to see in future versions: 1. The ability to build executables directly from IDLE -- pyinstaller works on my sons Win10 system, but is a bit hard to install. On my Linux Mint 19.3 system, pyinstaller is easily installed, but does not make functioning executables. It would be very nice to have this feature in IDLE, as it would make it a more complete IDE. 2. A startup option to open both Editor and Shell side by side, full extent. Thanks for reading, and a happy new year! Kind regards, David -------------- next part -------------- An HTML attachment was scrubbed... URL: From taleinat at gmail.com Tue Dec 31 13:45:52 2019 From: taleinat at gmail.com (Tal Einat) Date: Tue, 31 Dec 2019 20:45:52 +0200 Subject: [Idle-dev] Wishlist: Make executables + startup option In-Reply-To: References: Message-ID: Hi David, I'm very happy that you and your son are finding IDLE useful for learning programming with Python! On Tue, Dec 31, 2019 at 8:22 PM David wrote: > I have two things I would like to see in future versions: > > 1. The ability to build executables directly from IDLE > -- pyinstaller works on my sons Win10 system, but is a bit hard to > install. On my Linux Mint 19.3 system, pyinstaller is easily installed, but > does not make functioning executables. It would be very nice to have this > feature in IDLE, as it would make it a more complete IDE. > With IDLE being part of the Python standard library, it can't depend on other modules in standard library, and there are no such tools in the stdlib. I also don't foresee something like that being added to the stdlib any time soon. This would be a great IDLE extension through! If you, or anyone else, would like to take this up as a project, I'd be happy to provide guidance and support. > 2. A startup option to open both Editor and Shell side by side, full > extent. > This is the first time someone has asked for this, as far as I know. You're welcome to open an issue on bugs.python.org with this suggestion, where it can be further discussed and worked on. I personally think it would be unlikely for this to be added, since it appears to be a rather minor convenience, but at the same time depending on the quirks of OS window managers, which tend to change over time and cause lots of maintenance headaches. On the other hand, sometimes it's possible to come up with an alternative feature which would provide similar benefits. BTW, have you tried hacking this up with an external tool, e.g. AutoHotKey for Windows? - Tal Einat -------------- next part -------------- An HTML attachment was scrubbed... URL: From tjreedy at udel.edu Tue Dec 31 14:03:58 2019 From: tjreedy at udel.edu (Terry Reedy) Date: Tue, 31 Dec 2019 14:03:58 -0500 Subject: [Idle-dev] Wishlist: Make executables + startup option In-Reply-To: References: Message-ID: <4dd1affc-5f5e-1237-da57-c206b390dae7@udel.edu> On 12/30/2019 9:13 AM, David wrote: > Thank you for a great IDE. Me and my son are using it to learn programming. Great! > I have two things I would like to see in future versions: > > 1. The ability to build executables directly from IDLE > ??? -- pyinstaller works on my sons Win10 system, but is a bit hard to > install. On my Linux Mint 19.3 system, pyinstaller is easily installed, > but does not make functioning executables. It would be very nice to have > this feature in IDLE, as it would make it a more complete IDE. When Python is installed, IDLE can only immediately work with other stdlib modules. It is not allowed to install 3rd party modules. I would like to add a feature to feed a file being edited to 3rd party modules that have been separately installed. But this would be most valuable for code checkers that output is line number, comment pairs. The line number could be used to jump to the line in the editor. There would be no such synergy running pyinstaller or other executable builders from IDLE. > 2. A startup option to open both Editor and Shell side by side, full extent. My long term goal is to be possible to run IDLE with a pair of side-by-side tabbed panes. Editor and Shell in the two panes would be a prime use for this. I agree that this would be much more convenient that what we have to do now. -- Terry Jan Reedy From tjreedy at udel.edu Tue Dec 31 14:26:07 2019 From: tjreedy at udel.edu (Terry Reedy) Date: Tue, 31 Dec 2019 14:26:07 -0500 Subject: [Idle-dev] Wishlist: Make executables + startup option In-Reply-To: References: Message-ID: On 12/31/2019 1:45 PM, Tal Einat wrote: > On Tue, Dec 31, 2019 at 8:22 PM David > wrote: > 2. A startup option to open both Editor and Shell side by side, full > extent. > I personally think it would be unlikely for this to be added, since it > appears to be a rather minor convenience, but at the same time depending > on the quirks of OS window managers, which tend to change over time and > cause lots of maintenance headaches. This is why I want to do this with two panes in one window, as with turtledemo. Let tk handle alignment on the different systems. -- Terry Jan Reedy From andre.roberge at gmail.com Tue Dec 31 14:36:51 2019 From: andre.roberge at gmail.com (=?UTF-8?Q?Andr=C3=A9_Roberge?=) Date: Tue, 31 Dec 2019 15:36:51 -0400 Subject: [Idle-dev] Wishlist: Make executables + startup option In-Reply-To: References: Message-ID: On Tue, Dec 31, 2019 at 3:26 PM Terry Reedy wrote: > On 12/31/2019 1:45 PM, Tal Einat wrote: > > On Tue, Dec 31, 2019 at 8:22 PM David > > wrote: > > > 2. A startup option to open both Editor and Shell side by side, full > > extent. > > > I personally think it would be unlikely for this to be added, since it > > appears to be a rather minor convenience, but at the same time depending > > on the quirks of OS window managers, which tend to change over time and > > cause lots of maintenance headaches. > > This is why I want to do this with two panes in one window, as with > turtledemo. Let tk handle alignment on the different systems. > Thonny (https://thonny.org/) is based on tkinter and has an Editor and Shell above each other (instead of side by side) - and it seems to work well accross multiple OSes.. Some of Thonny's code is based on IDLE. > > > -- > Terry Jan Reedy > > _______________________________________________ > IDLE-dev mailing list > IDLE-dev at python.org > https://mail.python.org/mailman/listinfo/idle-dev > -------------- next part -------------- An HTML attachment was scrubbed... URL: