Re: [Python-Dev] [Idle-dev] Removing IDLE from the standard library

2010-07-12 Thread Kevin Walzer




If I read the patch correctly it replaces the existing 8.4 support by support 
for 8.5. That would not be acceptable because it would result in a 
non-functional version of IDLE for anyone that hasn't installed a custom copy 
of Tk.



Not quite. It doesn't specify a version of Tk to run; it checks instead 
for whether Tk is built on Cocoa or Carbon. (It needs 8.5 to run on Cocoa.)



The checkForAppKit function doesn't work with the system version of Tk that 
Python currently links to.


The checkForAppKit function queries the Tk windowing server for some 
information about its implementation. If it find 'AppKit,' then Cocoa's 
running: if no, then Carbon's running. If Carbon, then the code falls 
back to the current implementation.




Does the patch work with the system version of Tk 8.4 on OSX?


I just tested it against Python 2.5/Tk 8.4.7 (the system install on 
Leopard), which runs on Carobn, and it works fine. I've also tested it 
against 2.6 with Tk-Cocoa, and again it runs fine.  I don't have access 
to other combinations of Python and Tk, such as Python 3.1, but I think 
these results indicate it's safe to apply.


--Kevin

--
Kevin Walzer
Code by Kevin
http://www.codebykevin.com
___
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com


Re: [Python-Dev] [Idle-dev] Removing IDLE from the standard library

2010-07-12 Thread Kevin Walzer

On 7/12/10 10:16 AM, Michiel Overtoom wrote:

Tal Einat wrote:


I would like to propose removing IDLE from the standard library.


I use IDLE every day. It does everything I want an IDE to do, it looks
simple and doesn't waste screen real estate like some other IDEs do, it
supports proportionally spaced fonts correctly, its syntax coloring is
easy configurable (not a nightmare like some scintilla-based IDEs), and
it's instantly available on any PC on which I install Python.

I'd like to keep it in the stdlib.


+1 to keeping it in the stdlib, in case my earlier comments didn't make 
that clear.


My own reasons for submitting patches to help with Tkinter on the Mac 
are pretty typical: the Cocoa-based implementation of Tk broke some 
things in IDLE because of different methods for menu placement, etc. I 
wanted this fixed, and since I might be the only Python person with the 
knowledge about Carbon vs. Cocoa internals in Tk to do it, I dug in, 
attempted to grok IDLE's rather baroque code, and eventually came up 
with some patches. Scratching my own itch, IOW.


I'm currently using Aquamacs/Emacs for my Python development because of 
some other issues with Tk-Cocoa (external to IDLE) on Leopard, but once 
I upgrade my OS, I plan to return to using IDLE for everyday Python 
development. Since Tkinter is my GUI toolkit of choice, I like to work 
in that environment.


Also, I strongly urge Guilherme (or someone) to commit his changes to 
IDLE. While I like IDLE and feel it is a very useful IDE for Python work 
even for someone who is past the beginner stage, I also agree that its 
current UI is dated. Adding the themed Tk widgets would likely make it 
more pleasant to use, as well as showing what can be done with the new 
widgets. (The existence and widespread use of archaic Tk extensions like 
Tix within Tkinter isn't a recommendation for the toolkit beyond 
backwards compatibility.)


--Kevin

--
Kevin Walzer
Code by Kevin
http://www.codebykevin.com
___
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com


Re: [Python-Dev] [Idle-dev] Removing IDLE from the standard library

2010-07-11 Thread Kevin Walzer

On 7/11/10 5:03 AM, Ronald Oussoren wrote:






The OSX issues al seem to be related to general Tk or Tkinter bugs
on OSX. I know to little about Tk and Tkinter to seriously work on
those.


Ronald,

How about http://bugs.python.org/issue6075? I first submitted that patch 
in May '09, and updated it in October '09 on request from you, and it's 
just sat there since...


--Kevin


--
Kevin Walzer
Code by Kevin
http://www.codebykevin.com
___
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com