Re: [Pythonmac-SIG] Just starting out - Python 2.3.3?

2005-01-27 Thread Richard Jones
On 28/01/2005, at 3:42 PM, Bob Ippolito wrote: On Jan 27, 2005, at 11:26 PM, Richard Jones wrote: On 28/01/2005, at 2:45 PM, Bob Ippolito wrote: On Jan 27, 2005, at 7:31 PM, Richard Jones wrote: 1. I can't find source for PyObjC (though I think it might come with Python?) Ever tried google? Even

Re: [Pythonmac-SIG] Just starting out - Python 2.3.3?

2005-01-27 Thread Bob Ippolito
On Jan 27, 2005, at 11:26 PM, Richard Jones wrote: On 28/01/2005, at 2:45 PM, Bob Ippolito wrote: On Jan 27, 2005, at 7:31 PM, Richard Jones wrote: 1. I can't find source for PyObjC (though I think it might come with Python?) Ever tried google? Even clicking "I'm feeling lucky" will take you to

Re: [Pythonmac-SIG] Just starting out - Python 2.3.3?

2005-01-27 Thread Richard Jones
On 28/01/2005, at 2:45 PM, Bob Ippolito wrote: On Jan 27, 2005, at 7:31 PM, Richard Jones wrote: 1. I can't find source for PyObjC (though I think it might come with Python?) Ever tried google? Even clicking "I'm feeling lucky" will take you to the right place.. which happens to be

Re: [Pythonmac-SIG] Just starting out - Python 2.3.3?

2005-01-27 Thread Bob Ippolito
On Jan 27, 2005, at 7:31 PM, Richard Jones wrote: On 28/01/2005, at 12:14 AM, Bob Ippolito wrote: On Jan 26, 2005, at 23:49, Richard Jones wrote: 2. install the PyObjC stuff alongside a manually compiled Python? That works fine. Two hitches here: 1. I can't find source for PyObjC (though I think i

Re: [Pythonmac-SIG] Just starting out - Python 2.3.3?

2005-01-27 Thread Richard Jones
On 28/01/2005, at 12:14 AM, Bob Ippolito wrote: On Jan 26, 2005, at 23:49, Richard Jones wrote: 2. install the PyObjC stuff alongside a manually compiled Python? That works fine. Two hitches here: 1. I can't find source for PyObjC (though I think it might come with Python?) 2. I can't install a --

Re: [Pythonmac-SIG] Categories for class methods

2005-01-27 Thread Dethe Elza
That's a good tip, I haven't gotten the hang of Cocoa's verbosity yet. The choice of read: was to balance write:. The whole thing started because I found it odd that writing an image to a file was such a convoluted process. In a lot of ways, Cocoa makes things really easy, but when it isn't

Re: [Pythonmac-SIG] advancededitor

2005-01-27 Thread Thomas Wiroth
Bob Ippolito wrote: Could someone help me get the advanced editor patch working in pythonIDE 2.3? The files at "http://www.strout.net/python/mac/"; seems to need some work ... The files there are over 5 years old and were for a practically ancient version of Python (1.5.2 vs. 2.3.0).. it's

[Pythonmac-SIG] [ann] appscript 0.11.0

2005-01-27 Thread has
Hi all, Updates to appscript, aem and osaterminology posted: http://freespace.virgin.net/hamish.sanderson/appscript.html Cheers, has -- http://freespace.virgin.net/hamish.sanderson/ ___ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.pytho

Re: [Pythonmac-SIG] Categories for class methods

2005-01-27 Thread Bob Ippolito
On Jan 27, 2005, at 15:24, Dethe Elza wrote: FYI, once I updated PyObjC from svn, my example code worked, thanks again Ronald. ... class NSImage(Category(NSImage)): def rect(self): return (0,0),self.size() @classmethod # for Python2.3 replace with read_ = classmethod(read_) de

Re: [Pythonmac-SIG] Categories for class methods

2005-01-27 Thread Dethe Elza
FYI, once I updated PyObjC from svn, my example code worked, thanks again Ronald. from objc import Category from AppKit import * from os.path import splitext _fileRepresentationMapping = { '.png': NSPNGFileType, '.gif': NSGIFFileType, '.jpg': NSJPEGFileType, '.jpe

Re: [Pythonmac-SIG] Python 2.4 in /usr/local/bin?

2005-01-27 Thread Pierre Thibault
Sorry but I was wrong about the README file. It said that is going to install in /usr/local/ and it did. Maybe I was reading too fast. But they were others errors in it and I made a report so my comments are going to be helpful anyway. Sorry. Le 27 janv. 2005, à 01:50, Pierre Thibault a écrit :

Re: [Pythonmac-SIG] Python 2.4 in /usr/local/bin?

2005-01-27 Thread Bob Ippolito
On Jan 27, 2005, at 11:51, Doug Wyatt wrote: On Jan 27, 2005, at 5:31, Bob Ippolito wrote: Don't make any attempt to replace Apple's Python in the first place. You *will* break things. py2app, for example, will not correctly bundle applications if you install a non-standard Python to /usr (not

Re: [Pythonmac-SIG] Python 2.4 in /usr/local/bin?

2005-01-27 Thread Doug Wyatt
On Jan 27, 2005, at 5:31, Bob Ippolito wrote: Don't make any attempt to replace Apple's Python in the first place. You *will* break things. py2app, for example, will not correctly bundle applications if you install a non-standard Python to /usr (not local). Would it make sense to have the main

Re: [Pythonmac-SIG] advancededitor

2005-01-27 Thread Bob Ippolito
On Jan 27, 2005, at 11:27, Thomas Wiroth wrote: Could someone help me get the advanced editor patch working in pythonIDE 2.3? The files at "http://www.strout.net/python/mac/"; seems to need some work ... I changed the path (/Mac/Tools/IDE/) in AdvancedEditorPatch.py. I put "from Carbon" in fro

[Pythonmac-SIG] advancededitor

2005-01-27 Thread Thomas Wiroth
Could someone help me get the advanced editor patch working in pythonIDE 2.3? The files at "http://www.strout.net/python/mac/"; seems to need some work ... I changed the path (/Mac/Tools/IDE/) in AdvancedEditorPatch.py. I put "from Carbon" in front of the imports (Qd, Fm, Evt, Events) in PyAdva

Re: [Pythonmac-SIG] py2app and argv_emulation

2005-01-27 Thread Bob Ippolito
On Jan 27, 2005, at 10:11, João Leão wrote: Before I begin: thank you Bob for py2app. Py2applet is great for simple projects, even for newbies, and I can't see how could it be easier to use. That said, I wanted to ask you how can I get argv_emulation with py2app. Using py2applet I get it "for f

[Pythonmac-SIG] thuban on Mac

2005-01-27 Thread LALOUX Martin
Lorenzo Moretti has compiled Thuban ( Interactive Geographic Data Viewer in Python : http://thuban.intevation.org/) for Mac os X (10.3) as a single application  with : - wxPython 2.4.2.4 - Python 2.3.0 - PySQLite 0.5.1 - SQLite 2.8.15 - GDAL 1.2.5.0 - psycopg 1.1.14 - proj 4.4.9 download at http:

[Pythonmac-SIG] py2app and argv_emulation

2005-01-27 Thread João Leão
Hi list Before I begin: thank you Bob for py2app. Py2applet is great for simple projects, even for newbies, and I can't see how could it be easier to use. That said, I wanted to ask you how can I get argv_emulation with py2app. Using py2applet I get it "for free" and I suspect that it has someth

Re: [Pythonmac-SIG] Python 2.4 in /usr/local/bin?

2005-01-27 Thread Pierre Thibault
Ok, I've reported this to the Python team so I'll hope they'll make the correction. Thank you. Le 27 janv. 2005, à 03:21, Richard Jones a écrit : If you built it from scratch, it'll configure to go in /usr/local/bin by default, so the README lies. I'd highly recommend you *don't* install to /us

Re: [Pythonmac-SIG] Categories for class methods

2005-01-27 Thread Dethe Elza
You totally rock, heading to svn now. Thanks! --Dethe On 27-Jan-05, at 3:32 AM, Ronald Oussoren wrote: On 27-jan-05, at 12:06, Ronald Oussoren wrote: On 27-jan-05, at 6:34, Dethe Elza wrote: On 26-Jan-05, at 8:58 PM, Dethe Elza wrote: class NSImage(Category(NSImage)): def read_(cls, filepath):

Re: [Pythonmac-SIG] GDAL python bindings?

2005-01-27 Thread Darran Edmundson
Bob Ippolito wrote: GDAL is broken-ish because it doesn't use distutils to link modules. Try this: env MACOSX_DEPLOYMENT_TARGET=10.3 g++ -Wl,-bind_at_load -o .libs/_gdalmodule.so -bundle .libs/gdal_wrap.o .libs/numpydataset.o .libs/gdalnumeric.o ../.libs/libgdal.dylib -bundle -undefined dynamic

Re: [Pythonmac-SIG] Python 2.4 in /usr/local/bin?

2005-01-27 Thread Bob Ippolito
On Jan 27, 2005, at 3:21, Richard Jones wrote: On 27/01/2005, at 5:50 PM, Pierre Thibault wrote: I just made an install of Python 2.4 on my machine. The 'README' is saying that the install is going to take place on /usr/bin but in reality things were installed in /usr/local/bin'. If you built it

Re: [Pythonmac-SIG] GDAL python bindings?

2005-01-27 Thread Bob Ippolito
On Jan 27, 2005, at 8:34, Darran Edmundson wrote: Can anyone explain how to get GDAL http://www.remotesensing.org/gdal/index.html to compile with python bindings. I've downloaded from http://gdal.org/dl/, tried the standard "configure; make" but get the following: g++ -Wl,-bind_at_load -o .li

Re: [Pythonmac-SIG] GDAL python bindings?

2005-01-27 Thread Jim Tittsler
On Jan 27, 2005, at 22:34, Darran Edmundson wrote: P.S. Is there an easier way to search the list archives than going month by month through http://mail.python.org/pipermail/pythonmac-sig/ You can use Google and restrict your search with site:mail.python.org Someone brought this issue up on the

[Pythonmac-SIG] GDAL python bindings?

2005-01-27 Thread Darran Edmundson
Can anyone explain how to get GDAL http://www.remotesensing.org/gdal/index.html to compile with python bindings. I've downloaded from http://gdal.org/dl/, tried the standard "configure; make" but get the following: g++ -Wl,-bind_at_load -o .libs/_gdalmodule.so -bundle .libs/gdal_wrap.o .libs

Re: [Pythonmac-SIG] Just starting out - Python 2.3.3?

2005-01-27 Thread Bob Ippolito
On Jan 26, 2005, at 23:49, Richard Jones wrote: I'm starting on the path to PyObjC, and have made some progress. I'm developing a very simple GUI control panel to allow starting, stopping and status display of a Zope server running on the machine. I've hit a nasty roadblock though - Zope (2.7.4)

Re: [Pythonmac-SIG] Python 2.4 in /usr/local/bin?

2005-01-27 Thread Bob Ippolito
On Jan 27, 2005, at 1:50, Pierre Thibault wrote: I just made an install of Python 2.4 on my machine. The 'README' is saying that the install is going to take place on /usr/bin but in reality things were installed in /usr/local/bin'. The README is wrong. The installation prefix always defaults to

Re: [Pythonmac-SIG] Just starting out - Python 2.3.3?

2005-01-27 Thread Pete
I'm starting on the path to PyObjC, and have made some progress. I'm developing a very simple GUI control panel to allow starting, stopping and status display of a Zope server running on the machine. I've hit a nasty roadblock though - Zope (2.7.4) *requires* Python 2.3.3. Unfortunately, becaus

Re: [Pythonmac-SIG] Categories for class methods

2005-01-27 Thread Ronald Oussoren
On 27-jan-05, at 12:06, Ronald Oussoren wrote: On 27-jan-05, at 6:34, Dethe Elza wrote: On 26-Jan-05, at 8:58 PM, Dethe Elza wrote: class NSImage(Category(NSImage)): def read_(cls, filepath): return NSImage.alloc().initWithhContentsOfFile_(filepath) read_ = classmethod(read_) er, th

Re: [Pythonmac-SIG] Categories for class methods

2005-01-27 Thread Ronald Oussoren
On 27-jan-05, at 6:34, Dethe Elza wrote: On 26-Jan-05, at 8:58 PM, Dethe Elza wrote: class NSImage(Category(NSImage)): def read_(cls, filepath): return NSImage.alloc().initWithhContentsOfFile_(filepath) read_ = classmethod(read_) er, that should be initWithContentsOfFile_, but still

Re: [Pythonmac-SIG] Python 2.4 in /usr/local/bin?

2005-01-27 Thread Richard Jones
On 27/01/2005, at 5:50 PM, Pierre Thibault wrote: I just made an install of Python 2.4 on my machine. The 'README' is saying that the install is going to take place on /usr/bin but in reality things were installed in /usr/local/bin'. If you built it from scratch, it'll configure to go in /usr/loc