Re: [Pythonmac-SIG] Anyone playing with CoreAnimation yet?

2007-11-20 Thread Dethe Elza
Hi Jack, I'm very interested, but have not had time to dig into CoreAnimation yet. I would definitely like to hear your experiences with it, and will share mine when my current project is wrapped up. --Dethe On 20-Nov-07, at 3:50 AM, Jack Jansen wrote: > I've just realised how powerful Co

Re: [Pythonmac-SIG] Problem with numpy on Leopard

2007-11-05 Thread Dethe Elza
On Nov 5, 2007 10:10 AM, Ronald Oussoren <[EMAIL PROTECTED]> wrote: > That's partially because there's a large set of developers that only > test on Linux and then assume code will work everywhere :-/ I'm guilty of that in reverse. I only test on OS X and let Linux users fend for themselves until

Re: [Pythonmac-SIG] Python control/integration of a Cocoa/Quicktime application?

2007-11-02 Thread Dethe Elza
On 11/2/07, Darran Edmundson <[EMAIL PROTECTED]> wrote: > > The bare minimum you need is: > > import objc > > objc.loadBundle('MyBundle', globals(), > > bundle_path='/my/bundle/path/MyBundle.framework') One more thing. While the above is a bare minimum from the command line or to work with th

Re: [Pythonmac-SIG] Python control/integration of a Cocoa/Quicktime application?

2007-11-02 Thread Dethe Elza
On 11/2/07, Darran Edmundson <[EMAIL PROTECTED]> wrote: > Now that we have a proof-of-concept Objective-C framework, I'm trying to > port a simple test application to python. Keep in mind that I didn't > write either of these. I'm a complete neophyte in terms of Mac > development and Objective

Re: [Pythonmac-SIG] [Numpy-discussion] Problem with numpy on Leopard

2007-11-01 Thread Dethe Elza
On 11/1/07, Christopher Barker <[EMAIL PROTECTED]> wrote: > Robert Kern wrote: > > It's unlikely they are going to. If they put that stuff there, it's because > > they > > are using it for something, not as an (in)convenience to you. I don't > > recommend > > using the Python.framework in /System

Re: [Pythonmac-SIG] [Pyobjc-dev] pyobjc 2.0 has landed in the repository

2007-11-01 Thread Dethe Elza
Thanks for all the work you've put into this Ronald! My copy of Leopard is due to arrive today and I'm eager to play with the new frameworks. --Dethe ___ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonm

Re: [Pythonmac-SIG] Python control/integration of a Cocoa/Quicktime application?

2007-10-26 Thread Dethe Elza
If you write an Objective-C framework, the python code to wrap it using PyObjC is very short. Here is an example I use to expose Tim Omernick's CocoaSequenceGrabber framework to capture images from the iSight camera: import objc, AppKit, Foundation, os if 'site-packages.zip' in __file__: base

Re: [Pythonmac-SIG] ctypes and OS X CF types?

2007-10-22 Thread Dethe Elza
On 10/22/07, Bill Janssen <[EMAIL PROTECTED]> wrote: > > CoreFoundation is C, not C++. That said, it'd probably be easier to > > use PyObjC with NSMetadataQuery instead. > > Unfortunately, the Objective-C API is not as functional. Another option is to write the C wrapper in Objective-C (or find a

Re: [Pythonmac-SIG] easygui

2007-10-04 Thread Dethe Elza
Hi Rafael, I'm not familiar with EasyGUI, but it uses Tkinter, which I try to avoid on the Mac. If you need an easy way to create GUIs and you're OK with it being Mac-specific, then I'd recommend using Interface Builder (comes with the free OS X developer tools) to create your GUI and PyObjC to w

Re: [Pythonmac-SIG] python program in menu bar

2007-10-01 Thread Dethe Elza
Hi Dan, On 10/1/07, Dan Christensen <[EMAIL PROTECTED]> wrote: > Another question: is there a way I can make an LED on my MacBook Pro > flash? My program is a mail notifier, and I'd like to know when I have > new mail without unblanking my screen, something I'm used to with xbuffy > under linux.

Re: [Pythonmac-SIG] python program in menu bar

2007-09-29 Thread Dethe Elza
Dan wrote: > Thanks so much for that. It was quite easy to adapt it to my needs, > even though I don't understand the Cocoa side of the code. A few > questions: Glad it helped. I recommend getting familiar with the Cocoa libraries, they are quite rich, and PyObjC makes it very easy to experime

Re: [Pythonmac-SIG] python program in menu bar

2007-09-26 Thread Dethe Elza
Hi Dan, On 9/26/07, Dan Christensen <[EMAIL PROTECTED]> wrote: > Can anyone point to a simple example of a python program that runs in > the menu bar? I'd like a program that just displays a few characters of > text in the menu bar, and updates the display once a minute or so. The first thing to

Re: [Pythonmac-SIG] 64-bit code

2007-06-17 Thread Dethe Elza
On 17-Jun-07, at 9:26 AM, Ronald Oussoren wrote: > Speaking of PyObjC: I'm working on a new major release of PyObjC. > The code is not yet available in the public repository because I'm > targetting Leopard (with a backward compatibility layer for Tiger > and Panther) and didn't want to have

Re: [Pythonmac-SIG] Accessibility question

2007-05-03 Thread Dethe Elza
Hi Rafael, > I am a blind Mac user, in the process of learning python on the Mac. > I use VoiceOver, a utility included with Tiger, to read, and to > interact with screen elements (e.g., icons, text boxes, etc.). > > My reason for posting to this list is to ask if there is a native, > cocoa GUI to

Re: [Pythonmac-SIG] accessing iPhoto star rating through appscript?

2007-04-19 Thread Dethe Elza
On 19-Apr-07, at 2:13 AM, Simon Brunning wrote: > Err, that's iTunes. The OP wanted iPhoto. Oops. Sorry 'bout that. My bad. There are a couple of differences besides file names. All the images appear to have a default rating of 0 and images have Captions rather than Names. Also, rating g

Re: [Pythonmac-SIG] accessing iPhoto star rating through appscript?

2007-04-18 Thread Dethe Elza
Following up on my earlier reply, here is a script to print out all the star ratings: import plistlib, os tunes = plistlib.readPlist(os.path.expanduser('/~/Music/iTunes/iTunes Music Library.xml')) for track in tunes.Tracks.values(): if hasattr(track, 'Rating'): print '%s: %d star

Re: [Pythonmac-SIG] accessing iPhoto star rating through appscript?

2007-04-18 Thread Dethe Elza
On 18-Apr-07, at 2:14 PM, Daniel Thorpe wrote: > Hi everyone... > > Does anyone know if it's possible to access the star rating of a > photo from iPhoto using appscript? After looking in the iPhoto > dictionary and not seeng any reference to it, I have a feeling it is > not exposed through AppleSc

Re: [Pythonmac-SIG] Macintosh modules/Carbon/documentation

2007-03-30 Thread Dethe Elza
On 30-Mar-07, at 4:49 PM, Jack Jansen wrote: > Carbon itself should be fine. It is indeed undocumented within the > Python documentation, but the transformation from the official > Apple C documentation is pretty clear (I think). Is there anywhere that this mapping is specified? I've always

Re: [Pythonmac-SIG] How to make 2 scripts in one application

2007-03-05 Thread Dethe Elza
On 5-Mar-07, at 4:45 AM, Chris Van Bael wrote: > Hi all, > > doesn't anybody have an idea on how to solve this issue? Sorry, didn't see your original post. You can address the python instance in the application bundle (which will use the modules in the application bundle), but I think you'll

Re: [Pythonmac-SIG] Dock menu

2007-03-01 Thread Dethe Elza
On 1-Mar-07, at 5:36 AM, Amrit Jassal wrote: > I have a static dock menu created with Interface Builder (cocoa). > Works great. > I now have a requirement to add/remove items for this menu at run- > time or enable/disable menu items at run-time. > > I cannot find a way to get a handle to the do

Re: [Pythonmac-SIG] pyObjC and Plugins

2007-03-01 Thread Dethe Elza
Hmmm, I think I must have been a few revs behind. When I svn up'd to HEAD and tried again it built and loaded. Here's my setup: macholib-1.1-py2.5.egg modulegraph-0.7-py2.5.egg py2app-0.3.6.dev_r53-py2.5.egg setuptools-0.6c3-py2.5.egg bdist_mpkg-0.4.2-py2.5.egg pyobjc-1.4.1a0 Python 2.5 OS X (1

Re: [Pythonmac-SIG] pyObjC and Plugins

2007-03-01 Thread Dethe Elza
Hi Steve, My first thought was to make sure that you were getting the python you just build when you type "python" at the command-line. I've had problems like this before when I had the wrong python in my Path. Then I thought, what if the problem is with the example code? I know I've buil

Re: [Pythonmac-SIG] pyObjC and Plugins

2007-02-28 Thread Dethe Elza
Hi Steve, At some point py2app went from being bundled as part of PyObjC to being a separate install. I think at that time there was a requirement to uninstall the old py2app before installing the new one. I don't guarantee that is the solution to the problem you're having, but it's a po

Re: [Pythonmac-SIG] Multiple python 2.5 framworks

2007-02-07 Thread Dethe Elza
If you build an actual OS X application using py2app, it will embed the Python2.5 framework into the app with no conflict. I have many full python2.5 frameworks installed, from various applications I have built this way, as well as MacPorts and fink (non-framework) versions. I make sure m

Re: [Pythonmac-SIG] Opening an app from another app under different OS X versions

2007-01-25 Thread Dethe Elza
On 25-Jan-07, at 12:08 AM, Ronald Oussoren wrote: > On 24 Jan, 2007, at 18:44, Dethe Elza wrote: > >> Also, paths are different on >> internationalized versions of OS X. > > The aren't AFAIK. The finder is localized and shows different > folder names if you run

Re: [Pythonmac-SIG] Opening an app from another app under different OSX versions

2007-01-24 Thread Dethe Elza
On 24-Jan-07, at 10:13 AM, David Woods wrote: > Adding the path didn't help. Calling "open -a TransanaHelp.app" > from the > command line finds the app, and adding the full path makes is start > a bit > faster. But when the same call is made from within my bundled Python > program (regardles

Re: [Pythonmac-SIG] Opening an app from another app under different OS X versions

2007-01-24 Thread Dethe Elza
As Kevin said, you may only need the full path to your app. It's remotely possible you would need the full path to open as well (/usr/ bin/open). Full paths are finicky though, and you will need to know where your application is installed, if the help application is in the app bundle, for

Re: [Pythonmac-SIG] PyObjc learning curve from Tkinter background?

2007-01-12 Thread Dethe Elza
Hi Kevin, PyObjC has its share of hurdles, but there are some good resources to get you started. First, there are example programs in the PyObjC distro which can make good starting points. Second, the mapping from Objective-C to Python is very straightforward (see the PyObjC tutorial), whi

Re: [Pythonmac-SIG] Question on Python 2.5 and CoreGraphics

2007-01-07 Thread Dethe Elza
CoreGraphics wrapped by Apple using the built-in Python (Python 2.3 in Tiger). The binding itself is binary and proprietary, so it can only be used with the built-in Python. NodeBox, which appears to be a clone of DrawBot (which was inspired by Processing, etc.) has a library for CoreImage.

Re: [Pythonmac-SIG] py2app plugin problem: "Error loading code"

2006-12-12 Thread Dethe Elza
On 10-Dec-06, at 1:37 PM, Ronald Oussoren wrote: > The problem is that py2app/bundletemplate/prebuild/main in the > py2app distribution is an intel-only binary (at least in the > current trunk) instead of a universal binary. > > Removing the file and running 'setup.py' in the bundletemplate

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

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] 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] 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-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-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-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 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 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 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 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 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

[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] 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

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] 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] 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] [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] 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

[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] 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. > > _

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] 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] 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 "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] 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] 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] 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

[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] 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

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] 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] 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] 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

[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

[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 __

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

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] 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] 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] 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
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
>> 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

[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] 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

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] 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] 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] 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

[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] [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

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] 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] 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] 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] 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] [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] 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] 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] [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] 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

[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] 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.

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] 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] 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

[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] 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

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

[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

  1   2   >