[Pythonmac-SIG] needed: simple gui toolkit with "japaneseinput" support

Ronald Oussoren ronaldoussoren at mac.com
Mon Apr 10 22:42:20 CEST 2006


On 10-apr-2006, at 20:22, Kent Quirk wrote:

>
>
> -----Original Message-----
> From: pythonmac-sig-bounces at python.org [mailto:pythonmac-sig- 
> bounces at python.org] On Behalf Of Dethe Elza
> Sent: Monday, April 10, 2006 1:35 PM
> To: Gábor Farkas
> Cc: pythonmac-sig at python.org
> Subject: Re: [Pythonmac-SIG] needed: simple gui toolkit with  
> "japaneseinput" support
>
>>> so, is there something simpler? maybe a simple gui toolkit built  
>>> on cocoa?
>
>> There is a simple GUI toolkit built on Cocoa, it's called PyObjC.
>
> For particularly large values of "simple", I guess. For those who  
> don't already speak Cocoa, PyObjC is annoyingly cumbersome. Using  
> it requires that you understand Cocoa enough to know how to read  
> its documentation, understand its message model, understand the way  
> it handles object allocation, and be able to use Interface Builder.

Interface Builder is in my optinion one of the strong points of  
Cocoa: drag&drop live objects to build a user interface and then load  
that from your application code. That's a lot more convenient than  
building a GUI in code.

Cocoa's messaging model is not that much different from Python's. The  
major differences are two-stage object creationg (aka NSObject.alloc 
().init()) and segmented method names (doFoo:andBar:). The hard part  
of Cocoa is understanding how you should write code that works with  
the framework instead of against it. In that it isn't different from  
other large and powerfull frameworks like Twisted.

>
> I get the impression that for those who've used Cocoa and prefer  
> Python, it's a breath of fresh air...but for those who've not been  
> swimming in a vat of Cocoa, it's not quite so appetizing.

And to second Dethe: I'm also a python programmer that likes Cocoa.  
Heck, I wrote[1] PyObjC because I wanted to use Cocoa from Python.

Ronald


[1] Technically it's 'rewrote', but not much of the code from the  
original PyObjC is left by now.


More information about the Pythonmac-SIG mailing list