Re: [Pythonmac-SIG] py2app standalone options

2004-12-23 Thread Dethe Elza
p import py2app NAME = 'Oblique Strategies' SCRIPT = 'oblique.py' VERSION = '0.3' ICON = NAME ID = 'oblique_strategies' COPYRIGHT = 'Copyright 2004 Dethe Elza' DATA_FILES = ['English.lproj', 'data', 'MainMenu.gsmarkup', &#

Re: [Pythonmac-SIG] ANN: pyobjc-1.2

2005-01-01 Thread Dethe Elza
Congrats to all the pyobjc developers, this is a great way to start the new year. I have a couple of questions about pyobjc 1.2. First, can Categories extend classes which are defined in Python? Second, what applications can be extended with plugins? I realize a complete list is unfeasible, b

Re: [Pythonmac-SIG] ANN: pyobjc-1.2

2005-01-01 Thread Dethe Elza
I have a couple of questions about pyobjc 1.2. First, can Categories extend classes which are defined in Python? Only if they are a subclass of an Objective-C class. OK, that's about what I expected. Second, what applications can be extended with plugins? I realize a complete list is unfeasible

Re: [Pythonmac-SIG] ANN: pyobjc-1.2

2005-01-02 Thread Dethe Elza
You'll have to RTFM on a per-application basis. This doesn't have much to do with PyObjC. OK, that's what I was afraid of. Thanks! pyject works with this by starting a new thread in an arbitrary pid that loads some plugin using mach_inject. The inte

Re: [Pythonmac-SIG] ANN: pyobjc-1.2

2005-01-02 Thread Dethe Elza
As it is largely undocumented, has no official release, is quite "evil", and I have no spare time to support it.. I'm not going to encourage its use. If you have a use for it, it's there, but that's about as far as I'm willing to go right now. With an intro like that, how can I *not* try it out

[Pythonmac-SIG] Re: [Pyobjc-dev] missing method?

2005-01-04 Thread Dethe Elza
You need to replace colons in the Cocoa method with underscores in Python, so [dictionaryWithContentsOfFile: @"/path"] // My ObjC may be off a bit, but something like this becomes dictionaryWithContentsOfFile_(u"/path") # note underscore --Dethe As for intelligent machines taking over, a machin

Re: [Pythonmac-SIG] Any suggestions for a questionnaire site?

2005-01-14 Thread Dethe Elza
Jack, No personal experience with these, but a quick google shows: http://free-online-surveys.co.uk/ http://freesurveysonline.com/ http://freeonlinesurveys.com/ No idea how reputable any of these are... If all you want is a simple poll, my livingcode.org site is running on DreamHost, which offers

Re: [Pythonmac-SIG] coding preference

2005-01-18 Thread Dethe Elza
I'm glad I'm not the only one who feels that PyGame isn't worth the trouble for what you get. I'm not real crazy about wxWindows either. Right now I'm not concerned with cross-platform issues, but if I were I'd rather see time spent on making a strong, Pythonic UI library on top of pyobjc (ma

Re: [Pythonmac-SIG] coding preference

2005-01-19 Thread Dethe Elza
That being said, I am hopeful about PyGUI, but it's a going to be at least another few years before it's as useful as wxPython (there isn't even a real Windows version yet!). After all, it took quite a few years for wxPython to become really usable. My mistake. I was under the impression that P

[Pythonmac-SIG] Categories for class methods

2005-01-26 Thread Dethe Elza
Hi folks, Is it possible to add class methods to a class using Categories? when I try what appears to me to be the naive way to do it: from objc import Category from AppKit import NSImage class NSImage(Category(NSImage)): def read_(cls, filepath): return NSImage.alloc().initWithhContent

Re: [Pythonmac-SIG] Categories for class methods

2005-01-26 Thread Dethe Elza
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 gets the same error even without the

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] 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] Categories for class methods

2005-01-27 Thread Dethe Elza
e: 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_)

Re: [Pythonmac-SIG] algorithm wanted

2005-02-01 Thread Dethe Elza
On 1-Feb-05, at 4:47 PM, has wrote: Henning Hraban Ramm wrote: I'm looking for a better algorithm... This is probably as terse as it gets: [snip] # zip() isn't needed in this direction def cm0k2bool(s): return [x != '0' for x in s] --Dethe "The law I sign today directs new funds and new focus t

Re: [Pythonmac-SIG] Mac User Python newbies

2005-02-08 Thread Dethe Elza
On 8-Feb-05, at 9:07 PM, Roger Binns wrote: - QT (Unix) - GTK (Unix) - wxWidgets (Windows) - Tk (Unix) - Fltk (Unix) - Fox (Unix) Of course there are also: - Swing (Unix) - Mozilla/XUL Runner (???) - GnuStep (Unix) [This lets you use most of the OS X UI on Unix and Windows] - PyGame (Unix?)

Re: [Pythonmac-SIG] Re: Mac Python User Newbies

2005-02-13 Thread Dethe Elza
Kevin Walzer wrote: (Footnote two: ActiveState makes a commercial IDE for open-source languages, including Python, called Komodo: it's available for Windows and various Nixes, but not for the Mac. The only reason I can think of for this is market strategy, as Komodo is built on top of Mozilla; the

[Pythonmac-SIG] Hide application icon

2005-04-12 Thread Dethe Elza
HI folks, I'm writing a statusbar app and don't want an icon to show up in the Dock. What is the correct way to hide/remove the icon? --Dethe What dark passions and ancient evils have been held in check by the grim totalitarianism of the profit motive? --Bruce Sterling smime.p7s Description:

Re: [Pythonmac-SIG] Hide application icon

2005-04-12 Thread Dethe Elza
at 12:59 PM, Martina Oefelein wrote: Hi Dethe Elza: I'm writing a statusbar app and don't want an icon to show up in the Dock. What is the correct way to hide/remove the icon? set LSUIElement to "1" in your info.plist http://developer.apple.com/documentation/MacOSX/Conceptual/

Re: [Pythonmac-SIG] Hide application icon

2005-04-12 Thread Dethe Elza
I'll try to get that to you tonight then. --Dethe On 12-Apr-05, at 2:11 PM, Bob Ippolito wrote: On Apr 12, 2005, at 1:46 PM, Dethe Elza wrote: On 12-Apr-05, at 12:59 PM, Martina Oefelein wrote: Hi Dethe Elza: I'm writing a statusbar app and don't want an icon to show up in the Doc

[Pythonmac-SIG] Simple Statusitem example

2005-04-12 Thread Dethe Elza
Here is a very simple example of a statusbar item, requiring no further resources. A real statusitem would probably have a Nib to load a menu and maybe a configuration panel from, icons, etc. begin statusitem.py == import objc from Foundation import * from

Re: [Pythonmac-SIG] Simple Statusitem example

2005-04-13 Thread Dethe Elza
;m sure there's something that would be nice to have which would make a good example. --Dethe On 12-Apr-05, at 11:17 PM, Dethe Elza wrote: Here is a very simple example of a statusbar item, requiring no further resources. A real statusitem would probably have a Nib to load a menu and m

Re: [Pythonmac-SIG] Simple Statusitem example

2005-04-13 Thread Dethe Elza
Hi Tom, Thanks, that sounds like a good example. I'll take a look at it. Any others out there? --Dethe On 13-Apr-05, at 9:36 AM, Tom Pollard wrote: Hi Dethe, You asked: Are there any examples people would like to see? What would actually be *useful* to show in the status bar? ITunes and clocks

Re: [Pythonmac-SIG] Package installation

2005-04-18 Thread Dethe Elza
On 18-Apr-05, at 8:12 AM, [EMAIL PROTECTED] wrote: No. The problem I have with it is not installation, but version management. Finding out what versions of what packages are installed is not straightforward. If the problem is version management, the solution may not be to build a new installer p

Re: [Pythonmac-SIG] Which Python are people going to use?

2005-04-27 Thread Dethe Elza
I'm using 2.4.1 and will be generally be running the latest stable release. Using py2app makes it so convenient to just include the Python I'm working with, and it's now easy to install the latest Python, there's less and less reason to fiddle around with older versions. --Dethe _

Re: [Pythonmac-SIG] MacOS 10.4: getxattr() etc. for Python?

2005-05-03 Thread Dethe Elza
Not specifically python, but the xattr program from Big Nerd Ranch looks useful, and could be called easily enough from code. source: http://dev.bignerdranch.com/public/bnr/eXttra.zip binary: http://dev.bignerdranch.com/public/bnr/xattr.dmg --Dethe Simple things should be declarative. Complex

Re: [Pythonmac-SIG] MacOS 10.4: getxattr() etc. for Python?

2005-05-04 Thread Dethe Elza
> The trick is that on Solaris and SELinux they're purely an ACL issue > as far as I know. I believe Tiger is the first OS to fully deploy an > abstract meta-data infrastructure in the FS. While ReiserFS has it, > from what I'm told, it's not widely deployed. Not entirely true, BeOS pioneered file

[Pythonmac-SIG] AddressBook wrapper

2005-05-04 Thread Dethe Elza
The AddressBook wrapper doesn't appear to expose the constants kABShowAsPerson (0), kABShowAsCompany (1), or kABShowAsMask (7). --Dethe Life is extinct on other planets. Thier scientists were more advanced than ours. --Mark Russell ___ Pythonmac-S

Re: [Pythonmac-SIG] AddressBook wrapper

2005-05-06 Thread Dethe Elza
You rock. Thanks! --Dethe On 5-May-05, at 4:26 AM, Ronald Oussoren wrote: > > On 4-mei-2005, at 22:03, Dethe Elza wrote: > > >> The AddressBook wrapper doesn't appear to expose the constants >> kABShowAsPerson (0), kABShowAsCompany (1), or kABShowAsMask (7

[Pythonmac-SIG] Wrapping a framework

2005-05-17 Thread Dethe Elza
Hi folks, I've wrapped a couple of frameworks using the following idiom with no problem, but now I'm trying to wrap the framework that comes with Skype and it's refusing to load the bundle. Any ideas what I could be doing wrong? # Contents of Skype/__init__.py in path: import objc, AppKit,

[Pythonmac-SIG] Frameworks which won't import

2005-05-18 Thread Dethe Elza
Let me try to rephrase my question. I have a framework which I can't import into PyObjC in the usual way. Since then I've tried various other frameworks I've found on my system, mostly embedded in application bundles, and some import but others do not. I'm not getting any information on *w

Re: [Pythonmac-SIG] Frameworks which won't import

2005-05-18 Thread Dethe Elza
> It's more or less a case of getting what you deserve, trying to > load embedded frameworks from applications that were never meant > for external use. They probably depend on symbols defined in the > executable or something. OK, thanks. At least I know to give up that route and try anoth

Re: [Pythonmac-SIG] On posting long urls

2005-05-19 Thread Dethe Elza
> Using tinyurl isn't very search engine friendly and if tinyurl ever > goes down then the links are gone... I only really use tinyurl for > pathologically long transient URLs, like a mapquest map or > something :) > > -bob It's not an either-or proposition. You can include the original URL

[Pythonmac-SIG] Building Twisted

2005-05-22 Thread Dethe Elza
Hi folks, Has anyone installed twisted 2.0 on Tiger? I don't think I've ever had trouble building Twisted before, but now they've made it dependent on Zope Interfaces, which won't build for me. I'm running OS 10.4, Bob's Python 2.4, latest svn of PyObjC and py2app. Here's the traceback I'm g

Re: [Pythonmac-SIG] Building Twisted

2005-05-23 Thread Dethe Elza
> Just install the zope.interfaces from http://pythonmac.org/ > packages/ -- unless you don't trust me, in which case, I don't care :) > Bob, your packages were the first place I checked, but I checked for twisted and completely missed the fact that you had a package for Zope Interfaces. Tha

Re: [Pythonmac-SIG] Frameworks which won't import

2005-05-25 Thread Dethe Elza
On 18-May-05, at 11:14 AM, Bob Ippolito wrote: > On May 18, 2005, at 2:05 PM, Dethe Elza wrote: >> I have a framework which I can't import into PyObjC in the usual >> way. Since then I've tried various other frameworks I've found on my >> system, mostly

Re: [Pythonmac-SIG] SetSystemUIMode in python?

2005-05-27 Thread Dethe Elza
> While Pyrex is a pretty reasonable way to write extensions, PyObjC or > ctypes is generally less painful when wrapping a small number of > functions. This is very interesting. I thought the basic choices for wrapping C functions were: * Pyrex * ctypes * Write Obj-C and import with PyObjC I

Re: [Pythonmac-SIG] SetSystemUIMode in python?

2005-05-27 Thread Dethe Elza
On 27-May-05, at 4:05 PM, Bob Ippolito wrote: >> * Pyrex >> * ctypes >> * Write Obj-C and import with PyObjC >> > > * SWIG (ughh) > * Write C++ and use Boost.Python (ugh) > * Python C API directly (not really *that* bad) Yeah, I know, I was only listing methods that I'd actually consider *using.

[Pythonmac-SIG] Correct way to send info to running program

2005-05-27 Thread Dethe Elza
I want to be able to periodically send data to a running program, from the command-line. I was looking at the various NSPort classes, but just discovered that NSSocketPort is not a raw socket, but only intended to talk to other NSPort instances. Surely I'm not the only one who wants to be

Re: [Pythonmac-SIG] Correct way to send info to running program

2005-05-28 Thread Dethe Elza
Bob wrote: > NSDistributedNotificationCenter? > > You didn't really specify what your requirements are... > I'm trying to set up a "simplest thing that could possibly work" for getting events from another application which doesn't really play well with others. I have hacked it enough that i

Re: [Pythonmac-SIG] [Visualpython-users] Re: avoid dueling pythons on tiger

2005-06-08 Thread Dethe Elza
On 7-Jun-05, at 7:16 PM, Jon Schull wrote: > Thanks I have done that (by adding " set path = (/usr/local/bin > $path)" to .tcshrc) and all is well. > > Now, as momentary liaison between the pythonmac and vpython lists > I'll mention that VPython (a truly beautiful thing) could be made > i

Re: [Pythonmac-SIG] Finding what a broken alias refers to.

2005-06-24 Thread Dethe Elza
Ronald Oussoren wrote: > Someone with copious free time should build new Carbon wrappers, we > can than ask if the existing wrappers can be dropped in a future > version of Python. Sadly enough that probably is with python 2.6 at > the earliest, which is a long way away. > Would there be any bene

Re: [Pythonmac-SIG] Finding what a broken alias refers to.

2005-06-24 Thread Dethe Elza
On 24-Jun-05, at 6:35 AM, Bob Ippolito wrote: >> Is there a hitlist of frameworks that would be good to support, >> but are not supported yet? What are some of the best targets for >> someone who wants to jump in and help out? >> > > The most useful work would be hacking on the parser/generato

Re: [Pythonmac-SIG] [Durus-users] Problem compiling Durus on Tiger

2005-06-24 Thread Dethe Elza
On 24-Jun-05, at 7:25 AM, Mario Ruggier wrote: > Another annoying thing is the path change for site-packages -- tiger > now expects now that "site-packages" be appended to the panther > version > of the same location... ;-( I use a script to tell me where site-packages is. Save this as "pyex

Re: [Pythonmac-SIG] NSMovieView question

2005-06-30 Thread Dethe Elza
You can't really do that using NSMovieView without dropping down to the C-level Quicktime routines (maybe there is a python wrapper for these, but if so it is not documented). If you are running on Tiger (10.4) you can use the Quicktime (QTKit) framework, which has much more control over the

Re: [Pythonmac-SIG] PyObjC FAQ

2005-07-04 Thread Dethe Elza
There is a FAQ on the macpython wiki: http://www.pythonmac.org/wiki/FAQ It seems to have been rather drastically refactored, I remember there being many more questions before. --Dethe On 4-Jul-05, at 1:43 PM, Bob Ippolito wrote: > > On Jul 4, 2005, at 9:48 AM, Jacob Kaplan-Moss wrote: > > >>

Re: [Pythonmac-SIG] More on init

2005-07-06 Thread Dethe Elza
This works for me: from Foundation import * from AppKit import * from PyObjCTools import NibClassBuilder, AppHelper jabberwocky = '''Twas brillig and the slithy toves did gyre and gimble in the wabe all mimsy were the borogroves and the mome raths outgrabe''' class SpeechDelegate(NSObject):

Re: [Pythonmac-SIG] Discussion of Python IDE's: strengths and weaknesses (long)

2005-07-06 Thread Dethe Elza
Hi Kevin, Thanks for that summary. Testing out all of these various IDEs has been on my to-do list for a long time, but I never seem to get around to it (I rely on vim and TextWrangler for most of my coding needs). It's very helpful to have a good summary of the features and status of th

Re: [Pythonmac-SIG] [Pyobjc-dev] another tableview question

2005-07-07 Thread Dethe Elza
On 7-Jul-05, at 7:29 PM, Phil Christensen wrote: > # > # class defined in MainMenu.nib > class ContentsTreeViewDelegate(NibClassBuilder.AutoBaseClass): > # the actual base class is NSObject > # The following outlets are added to the class: > # controll

Re: [Pythonmac-SIG] [Pyobjc-dev] another tableview question

2005-07-07 Thread Dethe Elza
> One thing I'm not sure about is making the class a dataSource in > InterfaceBuilder. I made the connection (and obviously defined the > methods in the source), but I couldn't define the appropriate > actions on the class I created in IB. When I tried to create an > action for 'tableView:o

[Pythonmac-SIG] PySight

2005-07-13 Thread Dethe Elza
Hi folks, I'm looking for advice about packaging a library. Jonathan Wight of Toxic Software has built a simple framework around SequenceGrabber to expose it to Cocoa. I've made a trivial PyObjC wrapper and tested it sucessfully with Python. I'd like to build a disk image that contains

Re: [Pythonmac-SIG] Solid GUI toolkits for Mac?

2005-07-27 Thread Dethe Elza
On 26-Jul-05, at 11:12 PM, Jon Rosebaugh wrote: > I know of PyObjC (which scares me, because Interface Builder and Cocoa > scare me; I also had an initial fear (or perhaps dislike) of Interface Builder to begin with. Once you learn to use it, and PyObjC, you can be incredibly productive. C

Re: [Pythonmac-SIG] Problems with Notifications in PyObjC

2005-07-29 Thread Dethe Elza
What was the real problem? --Dethe On 29-Jul-05, at 2:07 PM, Jon Rosebaugh wrote: Um, ignore this. Boy, do I feel stupid now. On 7/29/05, Jon Rosebaugh <[EMAIL PROTECTED]> wrote: I hope this is an acceptable place for PyObjC problems... Anyhow, I have a small project I'm working on (zip ava

Re: [Pythonmac-SIG] Dock menu

2005-09-14 Thread Dethe Elza
Hi Simon, You can certainly add items to a dock menu in OS X using Python. For more info on the dock menu, see here: http://developer.apple.com/documentation/Carbon/Conceptual/ customizing_docktile/index.html?http://developer.apple.com/ documentation/Carbon/Conceptual/customizing_docktile/co

Re: [Pythonmac-SIG] bad magic

2005-09-15 Thread Dethe Elza
On 15-Sep-05, at 2:07 PM, Scott Frankel wrote: > I am just now, finally, able to upgrade osx & python to latest release > versions: 10.4.2 & 2.4.1, respectively). I've had half an eye on the > traffic on this list, so installation went well. 2.4.1 is humming > smoothly. > > I'm running into the

Re: [Pythonmac-SIG] Still hitting ImportError when trying to open app made with py2app

2005-10-14 Thread Dethe Elza
Hi Terry, The lack of a response is probably due to the general unfamiliarity with QT on this list. Mostly Cocoa gets advocated for Mac use, although some folks are using wx, Tkinter, or PyGame. Beyond that things start to get into less travelled territory pretty quick, although there ar

[Pythonmac-SIG] Best way to grab screenshot?

2005-11-03 Thread Dethe Elza
Hi folks, I'm trying to put together a screencast program using PyObjC. The first step is to be able to take a screenshot, and I've figured out one way to do that, based on The Irate Scotsman's Screen Sharing code [1]. Since OS X is using OpenGL to compose the window, and since even Serie

Re: [Pythonmac-SIG] inputing multi-digit numbers

2005-11-10 Thread Dethe Elza
>> Question: how do I get rid of the \n attached to each member in my >> list? > > Choose: > > map(int(map(string.strip, yourlist)) (Python 2.2) > > [ int(x.strip()) for x in yourlist ] (Python 2.3) > > ( int(x.strip()) for x in yourlist ) (Python 2.4) > You don't need strip(), int() ignores whi

Re: [Pythonmac-SIG] inputing multi-digit numbers

2005-11-10 Thread Dethe Elza
On 10-Nov-05, at 5:01 AM, <[EMAIL PROTECTED]> <[EMAIL PROTECTED]> wrote: > > -Original Message- > From: [EMAIL PROTECTED] [mailto:pythonmac-sig- > [EMAIL PROTECTED] On Behalf Of Kirk Durston > Sent: Thursday, November 10, 2005 2:00 AM > To: pythonmac-sig@python.org > Subject: [Pythonma

Re: [Pythonmac-SIG] inputing multi-digit numbers

2005-11-10 Thread Dethe Elza
On 10-Nov-05, at 10:18 AM, Bob Ippolito wrote: > I use this to convert excel to xml, and parse that from Python. > http://www.andykhan.com/jexcelapi/ > > -bob Oops. Obviously I failed to note which list this question was posed on, I assumed it was edu-sig for some reason. Sorry, didn't mean to

Re: [Pythonmac-SIG] inputing multi-digit numbers

2005-11-10 Thread Dethe Elza
> Excel on Mac is AppleScriptable through a weird path: Excel exposes > the VBA object model to AppleScript. So, it's not AppleScriptable > in the standard sense and I am not sure how you would access it > from Python. Thanks for the info, Kevin. It sounds like downloading OpenOffice and

Re: [Pythonmac-SIG] book recommendation

2005-11-15 Thread Dethe Elza
Hi David, While no one book covers all of Cocoa, going through a book can help give you a "feel" for how Cocoa programs come together. I've often caught myself making things *way* more difficult than they need to be before I discovered the Coccoa Way To Do It. I'm still learning the Coco

Re: [Pythonmac-SIG] Speed up Python on the Mac?

2005-12-06 Thread Dethe Elza
On Tue 2005-12-06, at Tue 2005-12-06T10:08 AM, Christopher Barker wrote: [Great list snipped] > Have I got them all? I hope this helps. Ctypes allows you to call C code from Python without an extension, but is fairly hairy to write. One Mac-specific way is to expose the C code via Objective

Re: [Pythonmac-SIG] Converting to AppleEvents

2005-12-07 Thread Dethe Elza
On Wed 2005-12-07, at Wed 2005-12-07T07:52 AM, Brian Ray wrote: [snipped] > This seems to work well for now. However, is there a way to have > os.system() wait till it's finished? In other words how to I get > the osascript tool to not return until the script has actually > finished. You p

[Pythonmac-SIG] PyMedia for Mac?

2006-01-02 Thread Dethe Elza
Does anyone know of a working port of PyMedia for OS X? I've seen, via Google, that several people have attempted the job, but no sign of anyone who has completed it. --Dethe Young children play in a way that is strikingly similar to the way scientists work --Busytown News __

[Pythonmac-SIG] Crashing screensaver engine

2006-01-26 Thread Dethe Elza
Hi folks, I'm trying to write an example screensaver in PyObjC which is a bit more complex than the existing example. One of the things I've added is a sheet to configure the screensaver. I'm doing something wrong there (was doing more things wrong, but I found some of them) and the scre

Re: [Pythonmac-SIG] New Page, first proposal

2006-02-08 Thread Dethe Elza
On 8-Feb-06, at 10:35 AM, Chris Porter wrote: > How does a build differ from a system? I think build refers to a version of Python, and system refers to a version of OS X. > I tried typing in python, and got the same response as typing in > pythonw. > Then I tried "pythonx" "pythona" and "p

Re: [Pythonmac-SIG] Pythonw and VPython and Fink

2006-02-14 Thread Dethe Elza
On 14-Feb-06, at 1:28 PM, Matthias Milczynski wrote: > I assume that the solution of this problem would be to somehow get a > fink-based pythonw, but this seems to be not avaiable. > Can anybody help me with this? I think the solution is for VPython to be ported to Aqua instead of using X11 (so

Re: [Pythonmac-SIG] Pythonw and VPython and Fink

2006-02-14 Thread Dethe Elza
> Framework builds of Python can use X11 just fine. I'm not sure > that's the holdup. The holdup is that it hasn't really been ported to OS X, they've just tweaked the Linux/Gnome version enough that you can build it on OS X, as long as you build GTK and friends first, and use X11, and get

Re: [Pythonmac-SIG] getting started with PyObjC

2006-03-06 Thread Dethe Elza
Using XCode isn't really the best way to create PyObjC apps. The recommended way is to use InterfaceBuilder to create your UI, implement it with PyObjC, and use py2app to build the application from there. Check out the tutorial on the PyObjC site, and the docs for py2app. PyObjC tutorial: http:/

Re: [Pythonmac-SIG] Job postings - allow or not?

2006-03-07 Thread Dethe Elza
I'm OK with job postings on the list. Its interesting to watch Python and OS X taking off. --Dethe ___ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig

[Pythonmac-SIG] Fwd: py2app question

2006-03-16 Thread Dethe Elza
Forgot to respond to list in my reply: On 3/16/06, Stewart Midwinter <[EMAIL PROTECTED]> wrote: > I have an application I'd like to have located on a USB stick, and be > able to run in a self-contained manner on any PC it's connected to, > whether running OS X or Windows. Can I use py2app to hel

Re: [Pythonmac-SIG] SQLite & python

2006-03-28 Thread Dethe Elza
On 3/28/06, Dan Grassi <[EMAIL PROTECTED]> wrote: > Hi, > > I am totally confused by all the versions and name conflicts of py- > sqlite and sqlite not to mention the python version confusion. What > I really want to do is use both sqlite version 2 and sqlite version 3 > since I have existing sqli

Re: [Pythonmac-SIG] NSUncaughtRuntimeErrorException and NSArrayController

2006-03-30 Thread Dethe Elza
> Use NSZombieEnabled. And I, for one, welcome our new Zombie Overlords. I'm proud to use a platform, a language, and a library which are Zombie-ready. My only worry is that in today's world, the zombies may not be able to find enough brains to go around, or worse, will only find brains among the

Re: [Pythonmac-SIG] bin and version

2006-04-10 Thread Dethe Elza
On 4/9/06, Daniel Lord <[EMAIL PROTECTED]> wrote: > > On Apr 8, 2006, at 7:59 PM, linda.s wrote: > > > Hi, > > I installed quite a few python versions in my computer and I want to > > know where they are located. > > Should i check them in the bin folder? > > If so, why I can not find the bin folde

Re: [Pythonmac-SIG] needed: simple gui toolkit with "japanese input" support

2006-04-10 Thread Dethe Elza
On 4/10/06, Gábor Farkas <[EMAIL PROTECTED]> wrote: > hi, > > i'd like to write a simple python-mac application, > for which i need to choose a gui toolkit. The primary GUI toolkit for Mac-specific work is to use Cocoa via the PyObjC bridge. http://pyobjc.sourceforge.net/ > the problem is that i

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

2006-04-10 Thread Dethe Elza
On 4/10/06, Kent Quirk <[EMAIL PROTECTED]> wrote: > > > 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 Coc

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

2006-04-10 Thread Dethe Elza
On 4/10/06, Kent Quirk <[EMAIL PROTECTED]> wrote: > > -Original Message- > From: Ronald Oussoren [mailto:[EMAIL PROTECTED] > Sent: Monday, April 10, 2006 4:42 PM > To: Kent Quirk > Cc: Dethe Elza; Gábor Farkas; pythonmac-sig@python.org > Subject: Re: [Python

Re: [Pythonmac-SIG] Fwd: MacPython icon mockup

2006-04-19 Thread Dethe Elza
On 4/19/06, Jacob Rus <[EMAIL PROTECTED]> wrote: > Ok, what do you all think of these script and compiled script icons: > > PNG: http://hcs.harvard.edu/~jrus/python/python-icons-a1.png > ZIP: http://hcs.harvard.edu/~jrus/python/python-icons-a1.zip > > The zip file contains icns files, png files, an

Re: [Pythonmac-SIG] Fwd: MacPython icon mockup

2006-04-24 Thread Dethe Elza
On 4/23/06, Jacob Rus <[EMAIL PROTECTED]> wrote: > Zachery Bir wrote: > > Bob Ippolito wrote: > >> +1, I like it! > > Moi, aussi. Put a fork in it, it's done! > Ok, the fork is in. > > http://hcs.harvard.edu/~jrus/python/python-icons.zip > > P.S. two of the icons have drop states. > > _

[Pythonmac-SIG] ctypes for Intel-base Macs?

2006-07-20 Thread Dethe Elza
Hi folks, I'm trying to get ctypes working on my new Macbook Pro under Python 2.4. It works under Python 2.5beta, so I assume the porting work has been done somewhere, but does not work with the downloadable version of ctypes (libffi won't build): > configure: error: "libffi has not been po

Re: [Pythonmac-SIG] ctypes for Intel-base Macs?

2006-07-20 Thread Dethe Elza
Bob Ippolito wrote: > I'm pretty sure that the version in Python 2.5 still has some i386 stack > alignment bugs. Ronald has fixed them for PyObjC, but I don't think that > work has migrated to ctypes yet. > > The version in http://svn.python.org/projects/ctypes/trunk/ctypes/ seems > to be in sy

Re: [Pythonmac-SIG] [ANN] py2app 0.3.2

2006-07-21 Thread Dethe Elza
Kaweh Kazemi wrote: > essentially i am trying to package a Panda3D test application using > py2app - see http://knuddl.net/moin.cgi/InstallPanda3d for my Panda3D > package if interested(compiled/linked for OS X including installation > instructions) - though be aware that the installation is

Re: [Pythonmac-SIG] poll() on OSX 10.3.9 with python2.5b2

2006-07-31 Thread Dethe Elza
Norman Khine wrote: > Hello, > I need to use the 'select' module in python, but get an error on the: > > Python 2.5b2 (r25b2:50512, Jul 31 2006, 15:01:51) > [GCC 3.3 20030304 (Apple Computer, Inc. build 1640)] on darwin > Type "help", "copyright", "credits" or "license" for more information. > >>

Re: [Pythonmac-SIG] appscript questions

2006-08-03 Thread Dethe Elza
Ronald Oussoren wrote: > On Aug 3, 2006, at 7:08 PM, has wrote: >> p.s. If anyone'd like to help me out a bit, I'd really like to get >> all the manuals into the standard Python documentation format now. So >> if you're familiar with the tools and would like to have a go then >> let me know - it'

Re: [Pythonmac-SIG] building pyopengl on Tiger?

2006-09-28 Thread Dethe Elza
I'm really glad to hear you're working on the OS X port. I'll try it out as soon as I get a few cycles free. I'm excited about the possibilities for PyOpenGL in the future--the ctypes work opens up some interesting territory. Thanks for working on this. --Dethe On 28-Sep-06, at 8:31 PM,

Re: [Pythonmac-SIG] porting VPython to OS X

2006-10-05 Thread Dethe Elza
I have tried to work on this in the past and would be willing to help again. My main problem is with the build environment. If I can get it to build consistently, I can write the bits that are needed for OS X. What I need is someone who understands autoconf better than I do. Do you know

[Pythonmac-SIG] Building plugins with py2app

2006-10-11 Thread Dethe Elza
Hi folks, I'm switching to to a recent py2app and moving to use setuptools- based builds instead of distutils. I've had several problems, but since I've been coding here and there in spare moments (including on the bus in the mornings), I haven't done a very good job of documenting them, I

Re: [Pythonmac-SIG] Building plugins with py2app

2006-10-12 Thread Dethe Elza
On 12-Oct-06, at 3:01 AM, Bob Ippolito wrote: > Plugins are currently broken. This is a known issue... patches > accepted, I'm not sure when I'll have time to get to it. Can you give any more specifics about how it is broken. I'm trying to write an article about how easy it is to build plugins

Re: [Pythonmac-SIG] Building plugins with py2app

2006-10-12 Thread Dethe Elza
On 12-Oct-06, at 9:49 AM, Bob Ippolito wrote: > plist thing just doesn't happen? Doesn't appear to. > The plugin bootstrap is broken. They won't start. So where do I look? This used to work beautifully. Is the plugin bootstrap the __boot__.py file or is it in C or Objective-C? Do we know

Re: [Pythonmac-SIG] Building plugins with py2app

2006-10-12 Thread Dethe Elza
On 12-Oct-06, at 10:08 AM, Ronald Oussoren wrote: > Could you try again with the latest version of py2app, that is > subversion revision 46. Using 'easy_install py2app==dev' should do > the trick. When I try that (after a long time) get a stack trace as follows: delza$ easy_install py2app==d

Re: [Pythonmac-SIG] Building plugins with py2app

2006-10-12 Thread Dethe Elza
On 12-Oct-06, at 1:33 PM, Ronald Oussoren wrote: >>> Could you try again with the latest version of py2app, that is >>> subversion revision 46. Using 'easy_install py2app==dev' should >>> do the trick. >> >> When I try that (after a long time) get a stack trace as follows: > > Why are you usin

Re: [Pythonmac-SIG] Building plugins with py2app

2006-10-12 Thread Dethe Elza
On 12-Oct-06, at 1:44 PM, Bob Ippolito wrote: > Also if you think that you'll need to hack on py2app at all you'd be > better off checking out the source and then "python setup.py develop". > That way the egg is your checkout so it's trivial to update and hack > on. Good advice. I'm still quite

Re: [Pythonmac-SIG] Building plugins with py2app

2006-10-12 Thread Dethe Elza
On 12-Oct-06, at 2:15 PM, Ronald Oussoren wrote: > What are you using to test? I've tested with the SillyBalls > screensaver in PyObjC's examples directory (Examples/Plugins/ > SillyBallsSaver). I've been testing with my screensaver, Pastels, but I just tried with SillyBalls and it also fail

Re: [Pythonmac-SIG] Building plugins with py2app

2006-10-12 Thread Dethe Elza
On 12-Oct-06, at 2:56 PM, Ronald Oussoren wrote: > I have macholib 1.2, modulegraph 0.7.1, altgraph 0.6.8 and py2app > 0.3.5, all fresh checkouts from svn. OK, I now have those versions as well, via easy_install [module]==dev on each one. I had tried building them all from svn the other day,

Re: [Pythonmac-SIG] Building plugins with py2app

2006-10-13 Thread Dethe Elza
On 12-Oct-06, at 10:44 PM, Ronald Oussoren wrote: > Reverting to an older version should work as well, with the caveat > that the latest pre-setuptools version of py2app has some problems > w.r.t. universal binaries (which is why Bob switched to the current > version). OK, well I need unive

Re: [Pythonmac-SIG] Building plugins with py2app

2006-10-15 Thread Dethe Elza
On 15-Oct-06, at 9:26 AM, Ronald Oussoren wrote: > I've done a clean install of python, py2app, PyObjC and related > packages and can now reproduce your problem. Thanks so much! > I hope I've also fixed the problem in revision 47 of py2app. It > turns out the app stub and bundle stub use a

Re: [Pythonmac-SIG] Building plugins with py2app

2006-10-15 Thread Dethe Elza
On 15-Oct-06, at 1:07 PM, Ronald Oussoren wrote: > Ok, nice to hear that. PyObjC has changed my life for the better, and I'm still just scratching the surface. The hard part is that I've become dependent on it, so when something doesn't work, everything I'm doing comes to a screeching halt

Re: [Pythonmac-SIG] IDLE and MacPython 2.5

2006-10-26 Thread Dethe Elza
Always remember that you are unique... >> [EMAIL PROTECTED] just like everyone else. >> ___ >> Pythonmac-SIG maillist - Pythonmac-SIG@python.org >> http://mail.python.org/mailman/listinfo/pythonmac-sig >> > > ___ > experimental polymedia: www.avatar.com.au > Sonic Communications Research Group, > University of Canberra:www.canberra.edu.au > > > > > ___ > Pythonmac-SIG maillist - Pythonmac-SIG@python.org > http://mail.python.org/mailman/listinfo/pythonmac-sig DETHE ELZA Senior Software Developer [EMAIL PROTECTED] ___ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig

Re: [Pythonmac-SIG] controlling iTunes with appscript

2006-12-04 Thread Dethe Elza
On 4-Dec-06, at 8:00 AM, Craig Amundsen wrote: > I've tried that. I'm trying to move my library from one external > Firewire > drive to an external RAID1 setup. Doing the consolidate moved about > 10% of > the files and then crapped out with an error that said something > about being > able

  1   2   >