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

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-03 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 ObjectiveC;

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

2007-11-03 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 the

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

2007-10-27 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: example import objc, AppKit, Foundation, os if 'site-packages.zip' in

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

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. The

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

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 to

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 toolkit

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

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 AppleScript.

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

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

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 dock

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

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

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 in another language (that's why

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] 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 (regardless of

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

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 to

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

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

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==dev

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 using setuptools

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 failed

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,

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

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

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'd be

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. import select

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

[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

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 sync

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, and also

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 folder in my home

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 need

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 Cocoa, PyObjC

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: [Pythonmac-SIG] needed: simple gui toolkit

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 sqlite

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

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:

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 it

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 pythong,

[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

[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

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

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 Cocoa

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 white space. So

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: [Pythonmac-SIG]

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

[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

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

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

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.

[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
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: # controller

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

Re: [Pythonmac-SIG] More on init

2005-07-06 Thread Dethe Elza
This works for me: snippet 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

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

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: On

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

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 pyext for

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

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

2005-05-28 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

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 it

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

[Pythonmac-SIG] Building Twisted

2005-05-23 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

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. Thank

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 for

[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

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 another

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). It does now (PyObjC repository, revision

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-SIG] Simple Statusitem example

2005-04-13 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 *

Re: [Pythonmac-SIG] Simple Statusitem example

2005-04-13 Thread Dethe Elza
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 maybe a configuration

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

[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
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/ BPRuntimeConfig/Concepts/PListKeys.html

Re: [Pythonmac-SIG] Categories for class methods

2005-01-27 Thread Dethe Elza
: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_) def read_(cls, filepath

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

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

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?