From wassim.mansouri at gmail.com Sat Jan 14 16:21:37 2012 From: wassim.mansouri at gmail.com (Wassim Mansouri) Date: Sat, 14 Jan 2012 16:21:37 +0100 Subject: [Idle-dev] Tabbed Document Interface for IDLE Message-ID: <4F119D81.20708@gmail.com> I wonder why a feature like the Tabbed Document Interface (TDI) is not implemented in IDLE? If the core team is OK for letting contributors to implement such a feature, how to proceed in that direction? Thanks. From tjreedy at udel.edu Sat Jan 14 16:35:26 2012 From: tjreedy at udel.edu (Terry Reedy) Date: Sat, 14 Jan 2012 10:35:26 -0500 Subject: [Idle-dev] Tabbed Document Interface for IDLE In-Reply-To: <4F119D81.20708@gmail.com> References: <4F119D81.20708@gmail.com> Message-ID: On 1/14/2012 10:21 AM, Wassim Mansouri wrote: > I wonder why a feature like the Tabbed Document Interface (TDI) is not > implemented in IDLE? The original problem was that tabs were part of the then new ttk widgets in 8.5, which not all distros had. That is no longer an issue. > If the core team is OK for letting contributors to > implement such a feature, how to proceed in that direction? I believe patches exist, though I do not know if there are any on the tracker. At the moment, once I am able to build a development version of tkinter on Windows, or install linux, my priority is patches for bugs. -- Terry Jan Reedy From roger.serwy at gmail.com Sat Jan 14 19:49:57 2012 From: roger.serwy at gmail.com (Roger Serwy) Date: Sat, 14 Jan 2012 12:49:57 -0600 Subject: [Idle-dev] Tabbed Document Interface for IDLE In-Reply-To: <4F119D81.20708@gmail.com> References: <4F119D81.20708@gmail.com> Message-ID: <4F11CE55.9020109@gmail.com> Hi Wassim, This issue has been raised before. See http://bugs.python.org/issue9262 Guilherme Polo wrote a patch in 2008 for a tabbed interface using the (then new) Tk 8.5. The patch would need updating to work with the current code. Also, I wrote a tabbed interface extension for Tk8.4 which is now part of IdleX. See http://idlex.sourceforge.net/ (Note that this extension is a hack to work around the limitations of Tk 8.4 and IDLE's extension interface.) If you have questions about IDLE's internals, please ask. - Roger On 01/14/2012 09:21 AM, Wassim Mansouri wrote: > I wonder why a feature like the Tabbed Document Interface (TDI) is not > implemented in IDLE? If the core team is OK for letting contributors > to implement such a feature, how to proceed in that direction? > > Thanks. > _______________________________________________ > IDLE-dev mailing list > IDLE-dev at python.org > http://mail.python.org/mailman/listinfo/idle-dev > From tjreedy at udel.edu Tue Jan 17 02:00:01 2012 From: tjreedy at udel.edu (Terry Reedy) Date: Mon, 16 Jan 2012 20:00:01 -0500 Subject: [Idle-dev] The '>>> ' prompt is bad Message-ID: In http://bugs.python.org/issue7676 msg151418 I conclude that putting a prompt on the first user entry line of each statement is a mistake that can only be solved by removing it. I see three alternatives. Discussion here or there welcome. -- Terry Jan Reedy From dmitry.popov at hpcat.aps.anl.gov Fri Jan 20 21:04:14 2012 From: dmitry.popov at hpcat.aps.anl.gov (Dmitry Popov) Date: Fri, 20 Jan 2012 20:04:14 +0000 Subject: [Idle-dev] Definitions in a script for the IDLE shell Message-ID: Dear Sirs. I have a rather simple question about IDLE operation which is quite important for me. If I run a script or a module as the main script using command Run Module (or F5) it looks like all the definitions of this script (variables, functions...) are available in the interactive interpreter which is active after the main script is executed. The problem is that I could not find any documentation where this is stated directly. Does anybody know clear confirmation that this is correct? In other words the question is whether IDLE command Run Module (or F5) is equivalent to start of Python from command line using the following command: python -i filename.py? This is important for me because I'm going to use many different starting definitions to work in the IDLE interactive interpreter. Regards, Dmitry Popov HPCAT, Geophysical Laboratory Carnegie Institution of Washington 9700 South Cass Ave., Bldg. 434E Argonne, IL 60439 -------------- next part -------------- An HTML attachment was scrubbed... URL: From Jean-Paul.Roy at unice.fr Fri Jan 6 07:46:33 2012 From: Jean-Paul.Roy at unice.fr (Jean-Paul Roy) Date: Fri, 06 Jan 2012 06:46:33 -0000 Subject: [Idle-dev] Problem with the French keyboard on IDLE 3.2.2 Message-ID: <67F073B8-298D-474E-8E0A-D0A58D18031E@unice.fr> Hi ! I am starting an undergraduate course on Python 3.2.2 and I would like to use the IDLE IDE on Mac Lion, as IDLE is actually cool for teaching. BUT I have problems with some dead keys, for example to get the tilde char, by the sequence "Alt-n ", the "Alt-n" moves the cursor on top of buffer instead of displaying the ~ char ! The french input method seems to be ignored which is strange in the Unicode times. I looked without success in the Preferences/Key menu. Same for french circumflex e (?) impossible to get with the keyboard, etc. IDLE is hardly usable with such behavior. It is strange that this bug seems to be known for months but no remedy comes from the Python community :-( I have not this problem with other IDE which are alas a bit too complex for beginners (we wish the same IDE for all OS). The course (250 students) will start in sept. 2012. Thanks, Jean-Paul From tjreedy at udel.edu Sat Jan 28 06:17:50 2012 From: tjreedy at udel.edu (Terry Reedy) Date: Sat, 28 Jan 2012 00:17:50 -0500 Subject: [Idle-dev] Definitions in a script for the IDLE shell In-Reply-To: References: Message-ID: On 1/20/2012 3:04 PM, Dmitry Popov wrote: > If I run a script or a module as the main script using command Run > Module (or F5) it looks like all the definitions of this script > (variables, functions?) are available in the interactive interpreter > which is active after the main script is executed. The problem is that I > could not find any documentation where this is stated directly. Does > anybody know clear confirmation that this is correct? Idle is a bit underdocumented. > In other words the question is whether IDLE command Run Module (or F5) > is equivalent to start of Python from command line using the following > command: python ?i filename.py? Right, with the different that output from previous sessions is still available in the window. > This is important for me because I?m going to use many different > starting definitions to work in the IDLE interactive interpreter. The current behavior is not going to change. For me, this is a feature because I can interactively print values and call functions if there is a bug in my program. It can also be used to setup an interactive environment, which is what you seem to want to do. -- Terry Jan Reedy From tjreedy at udel.edu Sat Jan 28 06:47:33 2012 From: tjreedy at udel.edu (Terry Reedy) Date: Sat, 28 Jan 2012 00:47:33 -0500 Subject: [Idle-dev] Problem with the French keyboard on IDLE 3.2.2 In-Reply-To: <67F073B8-298D-474E-8E0A-D0A58D18031E@unice.fr> References: <67F073B8-298D-474E-8E0A-D0A58D18031E@unice.fr> Message-ID: On 1/6/2012 1:46 AM, Jean-Paul Roy wrote: > Hi ! I am starting an undergraduate course on Python 3.2.2 and I > would like to use the IDLE IDE on Mac Lion, as IDLE is actually cool Idle works least well on Macs > for teaching. BUT I have problems with some dead keys, for example to > get the tilde char, by the sequence "Alt-n", the "Alt-n" moves > the cursor on top of buffer instead of displaying the ~ char ! I am not sure what you mean by 'dead keys' or 'top of buffer'. I just type the ~ key on my keyboard. On Windows and *nix, Alt-N is History: Next. On Mac, History: Next is supposed to be Cntl-N (which on open new window on Windows). On the IDLE Preferences dialog, Keys tab, there is a button for Use a Built-in Key Set with 4 choices. Is one of the Mac sets selected? What does CTRL-N do for you? > french input method seems to be ignored which is strange in the > Unicode times. The transition is still in progress. > I looked without success in the Preferences/Key menu. > Same for french circumflex e (?) impossible to get with the keyboard, > etc. IDLE is hardly usable with such behavior. It is strange that > this bug seems to be known for months Are you referring to an issue on the tracker? If so, which one? > but no remedy comes from the Python community :-( The 'community' consists of volunteers who work on issues they care about. A solution is most likely to come from someone who uses French keyboards, Idle, and the Mac. But if Idle does not work with a French keyboard, that combination is unlikely. Second best would be a French keyboard and Mac user who would like to use IDLE and who would work with others to help make IDLE work better. -- Terry Jan Reedy From nad at acm.org Sat Jan 28 16:38:03 2012 From: nad at acm.org (Ned Deily) Date: Sat, 28 Jan 2012 16:38:03 +0100 Subject: [Idle-dev] Problem with the French keyboard on IDLE 3.2.2 References: <67F073B8-298D-474E-8E0A-D0A58D18031E@unice.fr> Message-ID: In article <67F073B8-298D-474E-8E0A-D0A58D18031E at unice.fr>, Jean-Paul Roy wrote: > I am starting an undergraduate course on Python 3.2.2 and I would like to use > the IDLE IDE on Mac Lion, as IDLE is actually cool for teaching. BUT I have > problems with some dead keys, for example to get the tilde char, by the > sequence "Alt-n ", the "Alt-n" moves the cursor on top of buffer > instead of displaying the ~ char ! The french input method seems to be > ignored which is strange in the Unicode times. I looked without success in > the Preferences/Key menu. Same for french circumflex e (?) impossible to get > with the keyboard, etc. > IDLE is hardly usable with such behavior. It is strange that this bug seems > to be known for months but no remedy comes from the Python community :-( I > have not this problem with other IDE which are alas a bit too complex for > beginners (we wish the same IDE for all OS). > The course (250 students) will start in sept. 2012. See the discussion here: http://permalink.gmane.org/gmane.comp.python.general/703430 Unfortunately, the problem is due to lack of support of Mac OS X input methods in the OS X versions of Tk. It needs to be fixed there but, as far as I know, it is not being worked on by anyone in the Tcl/Tk world. There is nothing that Python or IDLE can do to work around it. Perhaps you can add your support on the Tk bug tracker here: http://sourceforge.net/tracker/?group_id=12997&atid=112997 -- Ned Deily, nad at acm.org From kw at codebykevin.com Sat Jan 28 20:06:50 2012 From: kw at codebykevin.com (Kevin Walzer) Date: Sat, 28 Jan 2012 14:06:50 -0500 Subject: [Idle-dev] Problem with the French keyboard on IDLE 3.2.2 In-Reply-To: References: <67F073B8-298D-474E-8E0A-D0A58D18031E@unice.fr> Message-ID: <4F24474A.2050206@codebykevin.com> On 1/28/12 10:38 AM, Ned Deily wrote: > Unfortunately, the problem is due to lack of support of Mac OS X input > methods in the OS X versions of Tk. It needs to be fixed there but, as > far as I know, it is not being worked on by anyone in the Tcl/Tk world. It is being worked on; I'm currently reviewing an updated patch to address the problem. When I commit the patch, it will go into both Tk's trunk and in the Cocoa 8.5 backport, and eventually be available through ActiveState's distribution. -- Kevin Walzer Code by Kevin http://www.codebykevin.com From cben at users.sf.net Sat Jan 28 20:36:39 2012 From: cben at users.sf.net (Beni Cherniavsky-Paskin) Date: Sat, 28 Jan 2012 21:36:39 +0200 Subject: [Idle-dev] Definitions in a script for the IDLE shell In-Reply-To: References: Message-ID: On Fri, Jan 20, 2012 at 22:04, Dmitry Popov wrote: > In other words the question is whether IDLE command Run Module (or F5) is > equivalent to start of Python from command line using the following > command: python ?i filename.py?**** > > Yes, indeed. You can directly inspect variables / call functions defined in the module, etc. And if there is an exception, you can: >>> import pdb; pdb.pm() to debug it "post mortem". Note that every time you press F5, it kill the previous Python, and re-runs the file in a new python, so you'll lose all state from the previous run. (But the history and output is retained until you exit IDLE.) -- Beni Cherniavsky-Paskin -------------- next part -------------- An HTML attachment was scrubbed... URL: