Re: [Pythonmac-SIG] New to list with issues….

2011-12-29 Thread Henning Hraban Ramm
Am 2011-12-22 um 15:45 schrieb Daniel Rahenkamp: Hi, I am new to the list and of course I have issues... I have run into a problem of which I find that I am a bit out of my depth in solving. I have upgraded to lion and python 2.7.2 and I have several scripts that I have been running for

Re: [Pythonmac-SIG] "elif" problem

2011-08-10 Thread Henning Hraban Ramm
Am 2011-08-10 um 16:43 schrieb Doychin Stanchev: I am really new to the programming and I decided to start with python. I found a book called "beginning python" and started to learn, but I had a problem with the command "elif". I am running 10.7 and python 2.72. Here is my problem: >>> mi

Re: [Pythonmac-SIG] translate applescript to appscript

2011-06-30 Thread Henning Hraban Ramm
Am 2011-06-30 um 13:52 schrieb Adam Morris: I have an AppleScript snippet that I need translating to python appscript; too low-level for ASTranslate to handle: tell application "Finder" "/Users/brainysmurf/Desktop" as POSIX file as alias end tell mactypes.Alias(unicodedata.normalize('

Re: [Pythonmac-SIG] Simple PyObjC question: real or vapor?

2011-04-06 Thread Henning Hraban Ramm
Disclaimer: I know nothing about PyObjC. Am 2011-04-04 um 07:24 schrieb Temescal: 3) I've used easy_install successfully exactly once to install lxml. I've shunned MacPorts and Fink because of the various web reports about their frailty, and also because using them seems to be incomprehen

Re: [Pythonmac-SIG] py2app -> .app size is too big

2011-02-16 Thread Henning Hraban Ramm
Am 2011-02-16 um 14:19 schrieb Prashant Saxena: After installing py2app using "python setup.py install", I created an .app of default wxpython's example name "supperdoodle". The resulting superdoodle.app is around 48.5 MB. Am I missing something in setup.py or this is normal size for wxpyth

Re: [Pythonmac-SIG] Some test code

2011-02-02 Thread Henning Hraban Ramm
Am 2011-02-03 um 05:45 schrieb Chris Rebert: if (card == "Hearts" or card == "Diamonds"): print "That card is Red" elif (card == "Spades" or card == "Clubs"): print "That card is Black" Note that the parentheses are completely unnecessary and not idiomatic style. if card == "Hea

Re: [Pythonmac-SIG] Determining if I need an import

2011-01-27 Thread Henning Hraban Ramm
Am 2011-01-24 um 23:52 schrieb Chris Weisiger: I've inherited a large codebase that is practically the definition of "legacy", with all that entails. I've spent a lot of time removing unused code, renaming variables, creating classes, moving global variables to locals (let's stuff all our p

Re: [Pythonmac-SIG] py2app not including /Library/Python/2.6/site-packages

2011-01-24 Thread Henning Hraban Ramm
Am 2011-01-24 um 02:53 schrieb michael ferraro: how about I do a sys.path.append ("/Library/Python/2.6/site-packages") in my main? How should such an absolute path help in a py2app packaged app? Greetlings from Lake Constance! Hraban --- http://www.fiee.net https://www.cacert.org (I

Re: [Pythonmac-SIG] Which version to install?

2010-08-28 Thread Henning Hraban Ramm
Am 2010-08-28 um 19:57 schrieb Monte Milanuk: Hello all, Now that I have things more or less back to the original for 10.6 on my Macbook, I'd like to install a slightly more up-to-date version for learning to develop with. Some of the things I'm interested in working with include wxpyth

Re: [Pythonmac-SIG] Py2App Problems

2010-05-30 Thread Henning Hraban Ramm
Am 2010-05-30 um 03:51 schrieb RSGames Support: I'm really unsure why it can't find pyttsx. I can easily import pyttsx, look: import pyttsx pyttsx 2.6/lib/python2.6/site-packages/pyttsx-1.0.egg/pyttsx/__init__.pyc'> I'm not sure if that's your problem, but last time I checked, py2app didn't

Re: [Pythonmac-SIG] PyQt apps on Mac

2010-03-30 Thread Henning Hraban Ramm
Am 2010-03-30 um 00:01 schrieb Kevin Walzer: I'm interested in taking a look at PyQt apps on the Mac. Problem is-- I can't find any that are already bundled as standalone apps. Right now I don't have the time or inclination to build PyQt from scratch to test things out...are there any PyQt d

Re: [Pythonmac-SIG] PyQt apps on Mac

2010-03-30 Thread Henning Hraban Ramm
Am 2010-03-30 um 07:47 schrieb Henning Hraban Ramm: Am 2010-03-30 um 00:01 schrieb Kevin Walzer: I'm interested in taking a look at PyQt apps on the Mac. Problem is--I can't find any that are already bundled as standalone apps. Right now I don't have the time or inclinatio

Re: [Pythonmac-SIG] PyQt apps on Mac

2010-03-29 Thread Henning Hraban Ramm
Am 2010-03-30 um 00:01 schrieb Kevin Walzer: I'm interested in taking a look at PyQt apps on the Mac. Problem is-- I can't find any that are already bundled as standalone apps. Right now I don't have the time or inclination to build PyQt from scratch to test things out...are there any PyQt d

[Pythonmac-SIG] Installing PIL

2010-03-18 Thread Henning Hraban Ramm
Ahoi, since there was no appropriate binary package/egg for Python 2.6 on OSX 10.4/PPC, I tried to compile from source but did run into some dependency problems: PIL took some libs from my MacPorts installation (/opt/local/) that were incompatible to some it took from the OSX SDKs, and it couldn't

Re: [Pythonmac-SIG] py2app creating semi_standalone instead of standalone app

2009-08-05 Thread Henning Hraban Ramm
Am 2009-08-05 um 04:35 schrieb Brendan Simon (eTRIX): Maybe it has something to do with this statement in the py2app website. If the --semi-standalone option is used (forced if a vendor Python is being used), then the not_stdlib_filter will be automatically added to ensure that the P

Re: [Pythonmac-SIG] py2app vs PyObjCTools

2009-08-03 Thread Henning Hraban Ramm
Am 2009-08-03 um 18:23 schrieb Aahz: I'm using py2app 0.3.6 with PyObjC 2.2b2, and py2app is refusing to copy pyobjc_framework_Cocoa-2.2b2-py2.6-macosx-10.3-fat.egg/PyObjCTools/ NibClassBuilder into site-packages.zip. The weird thing is that I *do* get PyObjCTools/__init__.pyo, but none of t

Re: [Pythonmac-SIG] py2app not copying PySerial module

2009-06-24 Thread Henning Hraban Ramm
Am 2009-06-24 um 07:09 schrieb Brendan Simon (eTRIX): I'm running py2app for the first time -- following the instructions on the web. I've created an app bundle but running the app fails as it can't find a module named "serial". The "serial" module is part of PySerial-2.4. I couldn't find

Re: [Pythonmac-SIG] py2app

2009-02-04 Thread Henning Hraban Ramm
Am 2009-02-04 um 01:05 schrieb Christopher Barker: Hm, what do you mean? Should there be a standalone py2app script anywhere? nope. I know only "python setup.py py2app", right, so you add the -A: python setup.py py2app -A > and therefore I'd need to write a setup.py which is trivial

Re: [Pythonmac-SIG] py2app (was: Should Python.app be an LSUIElement = 1 app?)

2009-02-03 Thread Henning Hraban Ramm
Am 2009-02-03 um 18:54 schrieb Christopher Barker: Most of *my* wxPython-based (actually dabo-based) tools don't even need to be an app bundle - doubleclicking some .py file is mostly enough. Check out "py2app -A". It's perfect for this kind of use. Hm, what do you mean? Should there be a

Re: [Pythonmac-SIG] Should Python.app be an LSUIElement = 1 app?

2009-02-03 Thread Henning Hraban Ramm
Am 2009-02-03 um 03:47 schrieb Bill Janssen: I'd suggest that promotion to LSUIElement (agent application) by the toolkit is probably right, but I'd suggest that you only promote to full app by actually having an app bundle that overrides the default Info.plist. Sorry for chirping in as a n

Re: [Pythonmac-SIG] PDF reading

2009-01-24 Thread Henning Hraban Ramm
Am 2009-01-21 um 12:35 schrieb Paul Brown: anyone have any pointers on reading a pdf file. i need to extract the text content , page number , text style , block , ... all in XML if poss since nobody else answered: I found this one in my link collection: http://pybrary.net/pyPdf/ Never t

Re: [Pythonmac-SIG] py2app: how to exclude pygame_icon.icns ?

2009-01-03 Thread Henning Hraban Ramm
Am 2009-01-03 um 21:54 schrieb Bob Ippolito: I think that just means that you have to install modulegraph==dev on its own. You're right, could have thought of that myself. Sorry for the noise. Greetlings from Lake Constance! Hraban --- http://www.fiee.net https://www.cacert.org (I'm an ass

Re: [Pythonmac-SIG] py2app: how to exclude pygame_icon.icns ?

2009-01-03 Thread Henning Hraban Ramm
Am 2009-01-03 um 19:43 schrieb Chris.Barker: There have been some fixes for similar issues -- make sure you re using the latest py2app: easy_install py2app==dev hraban$ easy_install py2app==dev Searching for py2app==dev Reading http://pypi.python.org/simple/py2app/ Reading http://undefined.or

Re: [Pythonmac-SIG] LOLpatents

2008-12-13 Thread Henning Hraban Ramm
Am 2008-12-13 um 00:27 schrieb has: Look what I ran across today: http://appft1.uspto.gov/netacgi/nph-Parser?Sect1=PTO2&Sect2=HITOFF&u=%2Fnetahtml%2FPTO%2Fsearch-adv.html&r=1&p=1&f=G&l=50&d=PG01&S1=%28scripting+AND+bridge%29.TTL.&OS=ttl/(scripting+and+bridge)&RS=TTL/(scripting+AND+bridge) I f

Re: [Pythonmac-SIG] Creator, type and other means of file detection

2008-12-01 Thread Henning Hraban Ramm
Am 2008-12-01 um 20:02 schrieb Nicholas Riley: import LaunchServices LaunchServices.UTTypeCopyPreferredTagWithClass('public.jpeg', LaunchServices.kUTTagClassOSType) u'JPEG' Thank you, that's something I might use. And probably LSFindApplicationForInfo, LSGetApplicationForItem and LSCopy

Re: [Pythonmac-SIG] Creator, type and other means of file detection

2008-12-01 Thread Henning Hraban Ramm
Am 2008-11-30 um 14:29 schrieb Karsten Wolf: If I use MacOS.GetCreatorAndType(filename) on my Intel machine, I get for an EPS: ('09HF', 'FSPE') Have you checked that with the tool GetFileInfo? I get those reversed types/creators for some files on my PPC machine. I get the reversed types/

Re: [Pythonmac-SIG] Creator, type and other means of file detection

2008-11-29 Thread Henning Hraban Ramm
Am 2008-11-29 um 20:15 schrieb Bill Janssen: I think the modern Mac equivalent goes something like this: def uti_for_file(path): import os from AppKit import NSWorkspace uti, err = NSWorkspace.sharedWorkspace().typeOfFile_error_( os.path.realpath(path), None) if err:

[Pythonmac-SIG] Creator, type and other means of file detection

2008-11-29 Thread Henning Hraban Ramm
I know the MacOS module is deprecated, and now I know at least one detail of "why": If I use MacOS.GetCreatorAndType(filename) on my Intel machine, I get for an EPS: ('09HF', 'FSPE') That should read ('FH09', 'EPSF'). I didn't knew endian-ness affects the order of strings. Very funny! ;-)

Re: [Pythonmac-SIG] IDE that doesn't look awful?

2008-10-22 Thread Henning Hraban Ramm
Am 2008-10-22 um 21:54 schrieb Joe Strout: I suppose I should really move this to the pyXide list. I had to google that (and it take a couple of tries to find the relevant link). For the record, this is what I found: ...which sounds like a pretty interesting id

Re: [Pythonmac-SIG] IDE that doesn't look awful?

2008-10-21 Thread Henning Hraban Ramm
Am 2008-10-21 um 19:45 schrieb Joe Strout: Otherwise I would have stayed with SPE (FYI: it includes the debugger Winpdb and the GUI builder wxGlade; I never used them). I tried SPE last night, and it looks promising... but the developer seems to be determined to discourage new users. Its "

Re: [Pythonmac-SIG] IDE that doesn't look awful?

2008-10-21 Thread Henning Hraban Ramm
Am 2008-10-20 um 23:46 schrieb Joe Strout: Is there any Python IDE that looks and feels more like a proper Mac app? Since nobody else mentioned it: I use Eclipse/Aptana with PyDev, because I mostly deal with web projects and need to edit HTML, CSS, JavaScript, PHP, XML, TeX etc. as well

Re: [Pythonmac-SIG] Python-Mac wiki?

2008-10-16 Thread Henning Hraban Ramm
Am 2008-10-16 um 19:28 schrieb Joe Strout: This mailing list is great, but it'd be nice to have a wiki we could all contribute docs, explanations, and examples to as well. Is there something like that already set up? http://wiki.python.org/moin/MacPython/ But needs a caring maintainer...

Re: [Pythonmac-SIG] str.decode() behaves differently in 2.5 and 2.6

2008-10-12 Thread Henning Hraban Ramm
Am 2008-10-12 um 12:42 schrieb has: Figure I should check here before filing a bug. Anyone understand the following discrepancy between 2.5 and 2.6: $ python2.5 Python 2.5.1 (r251:54863, Jan 17 2008, 19:35:17) [GCC 4.0.1 (Apple Inc. build 5465)] on darwin Type "help", "copyright", "credits" o

Re: [Pythonmac-SIG] controlling Mail.app and GnuPG

2008-08-29 Thread Henning Hraban Ramm
Am 2008-08-25 um 23:44 schrieb has: * issue (1) [appscript syntax for Mail.app]: I can list the attachments with appscript, but I didn't find a way to save them or to access them as files. Something like this should work (assuming the files don't already exist in the destination folder):

Re: [Pythonmac-SIG] Creating Application()

2008-08-25 Thread Henning Hraban Ramm
Am 2008-08-24 um 23:28 schrieb Jack Jansen: I'm not a complete newbie in python, but in building GUIs. I've worked around a bit with Tkinter and I think, I can handle this one, but I also tried to work with the "FrameWork" module, to create Menubars and this kind of stuff. But I did not eve

[Pythonmac-SIG] controlling Mail.app and GnuPG

2008-08-24 Thread Henning Hraban Ramm
The issue was raised before, but I didn't find any hints how to solve my little problems... BTW, this is framework Python 2.5.2 on OSX 10.5 It is known that the public API of Apple's Mail.app is incomplete and buggy, therefore stuff like the GnuPG plugin stay in eternal beta (and just don'

Re: [Pythonmac-SIG] catching the Cmd+Q event

2008-08-24 Thread Henning Hraban Ramm
Am 2008-08-24 um 10:41 schrieb David Warde-Farley: I was wondering if anyone knew of a way to catch Cmd+Q in a threaded wx/Tkinter/etc. event loop. I remember catching the quit event of a wxPython loop on Windows several years ago, because there was a zombie process left if I didn't close

Re: [Pythonmac-SIG] file system encoding and type

2008-07-28 Thread Henning Hraban Ramm
Am 2008-07-28 um 15:25 schrieb David Hughes: Henning Hraban Ramm wrote: How can I detect for some entry in "/Volumes" what kind of volume it is, e.g. Harddisk, USB stick, CD/DVD, and what encoding it uses? For a CD/DVD cataloguing tool I need to detect removable disks. I use th

[Pythonmac-SIG] file system encoding and type

2008-07-28 Thread Henning Hraban Ramm
How can I detect for some entry in "/Volumes" what kind of volume it is, e.g. Harddisk, USB stick, CD/DVD, and what encoding it uses? For a CD/DVD cataloguing tool I need to detect removable disks. At the moment I call "mount" like this: import re, subprocess def findCD(): """ Look for

Re: [Pythonmac-SIG] [pygame][py2app] strange behaviour with mixer.music

2008-07-06 Thread Henning Hraban Ramm
Am 2008-07-06 um 22:38 schrieb Pierre-Alain Dorange: Henning Hraban Ramm <[EMAIL PROTECTED]> wrote: Try importing pygame.mixer.music or add that dependency in your setup.y, maybe the dependency tree is not traversable for setuptools. import pygame.mixer.music make an error : ImportErr

Re: [Pythonmac-SIG] [pygame][py2app] strange behaviour with mixer.music

2008-07-06 Thread Henning Hraban Ramm
Am 2008-07-05 um 13:34 schrieb Pierre-Alain Dorange: The source code : import os, pygame from pygame.locals import * File "/Volumes/Documents/PAD/Dev/PyGame/MicroWar/Source/dist/MicroWar.app/ Con tents/Resources/microwar.py", line 1721, in main pygame.mixer.music.load(fname)

Re: [Pythonmac-SIG] A simple app: Develop on Leopard, use on Tiger

2008-06-20 Thread Henning Hraban Ramm
Am 2008-06-20 um 01:15 schrieb John Velman: Python as the application platform. SQLite as an embedded database. Would be nice to use QT for user interface. Outputs needed in PDF format, and possible PDF with fillable forms. I can probably get my daughter to upgrade to Leopard, but if an ap

Re: [Pythonmac-SIG] appscript can't talk to 'System Events'?

2008-06-19 Thread Henning Hraban Ramm
Am 2008-06-19 um 19:16 schrieb Bill Janssen: So, here's another appscript problem: /Users/wjanssen 2 % python Python 2.5.1 (r251:54863, Jan 17 2008, 19:35:16) [GCC 4.0.1 (Apple Inc. build 5465)] on darwin Type "help", "copyright", "credits" or "license" for more information. from appscript im

Re: [Pythonmac-SIG] converting Mac 'path' to file path in appscript?

2008-06-19 Thread Henning Hraban Ramm
Am 2008-06-19 um 20:15 schrieb Bill Janssen: Can someone tell me how to convert the old Classic-style paths returned from many of the appscript properties to real OS X file paths? Is there some appscript constructor which takes a path as an argument and returns a Unix path? Here's an example:

Re: [Pythonmac-SIG] NewBie question: Building GUI for Mac

2008-06-08 Thread Henning Hraban Ramm
Am 2008-06-06 um 16:33 schrieb Kevin Walzer: 2. wxPython is cross-platform but looks great on the Mac with some attention to UI design, is well-documented (both in terms of available sample code online and books), and has a supportive community. It doesn't provide many Mac-specific hooks lik

Re: [Pythonmac-SIG] py2app and eggs

2008-05-07 Thread Henning Hraban Ramm
Am 2008-05-07 um 01:45 schrieb Christopher Barker: I'm having an odd issue with py2app. It seems to be bringing in almost everything in my Python install -- I"m getting a 112MB .app --which is way too big! The resulting app is crashing hard in a way I can't figure out anything about, too, b

Re: [Pythonmac-SIG] Xcode 3.0 and Compiled Python Files?

2008-04-26 Thread Henning Hraban Ramm
Am 2008-04-23 um 19:08 schrieb Brian Berliner: Now, any advice on an obfuscator? Don't use a scripting language, but e.g. ObjC Greetlings from Lake Constance! Hraban --- http://www.fiee.net https://www.cacert.org (I'm an assurer) ___ Pythonmac-S

Re: [Pythonmac-SIG] Double-clickable wxpython application?

2008-04-13 Thread Henning Hraban Ramm
Am 2008-04-12 um 21:07 schrieb Kevin Horton: > I eventually ran into a performance issue with my widget version, so > I took another look at wxpython. With a fresh look, I realized that > it was an environment issue that was causing the failure to start > wxpython from an AppleScript or Automator.

Re: [Pythonmac-SIG] Double-clickable wxpython application?

2008-04-09 Thread Henning Hraban Ramm
Am 2008-04-09 um 02:54 schrieb Kevin Horton: >> Try to map *.py on Python Launcher. > I didn't even know PythonLauncher.app existed, but SpotLight found > it, and I did the mapping. PythonLauncher from Apple's python 2.3 on > OS 10.4 didn't work, but the one from MacPython 2.5 did work. At > leas

Re: [Pythonmac-SIG] Double-clickable wxpython application?

2008-04-08 Thread Henning Hraban Ramm
Am 2008-04-08 um 02:40 schrieb Kevin Horton: >> >> Just put an alias to your python file on the Desktop. >> On doubleclick it starts Terminal, but it works. > I don't know why, but this does not work for me. In my account > nothing happens, and no messages in Console.app giving a clue why. I > re

Re: [Pythonmac-SIG] Double-clickable wxpython application?

2008-04-07 Thread Henning Hraban Ramm
2008/4/7, Kevin Horton <[EMAIL PROTECTED]>: > I've created a small wxpython application to perform a particular > function that my wife wants. It uses the standard Apple python and > wxpython, and works great if I start it from Terminal.app. But, she > is not keen on using the command line, so

Re: [Pythonmac-SIG] Mac Python FAQ?

2008-04-05 Thread Henning Hraban Ramm
Am 2008-04-05 um 15:36 schrieb has: > Just wondering if there's an up-to-date FAQ/troubleshooting page > available for OS X-based Python users? > > For example, the adjoining "Help getting started with py-appscript" > thread was really a general Python/OS X issue, not an appscript- > specific one,

Re: [Pythonmac-SIG] Unicode path problems (was: Re: suggestions for an appscript FAQ)

2008-03-19 Thread Henning Hraban Ramm
Am 2008-03-18 um 20:13 schrieb has: >> E.g. I had big problems with Finder labels - often got "16393" as >> label_index for some tries, until finally the right number showed >> up. Can't reproduce that any more, without changing my installation. > > Sounds very odd. Doubt the problem is coming from

Re: [Pythonmac-SIG] suggestions for an appscript FAQ

2008-03-15 Thread Henning Hraban Ramm
Am 2008-03-15 um 22:13 schrieb has: >> << 1 >> >> Why does this work: >> document = InDesign.make(new=k.document) >> document.save(to=ComposedFile(path)) >> >> but not this: >> document = InDesign.make(new=k.document).save(to=ComposedFile(path)) > > Seems to work on CS3. What are you

Re: [Pythonmac-SIG] Unicode path problems (was: Re: suggestions for an appscript FAQ)

2008-03-15 Thread Henning Hraban Ramm
Am 2008-03-15 um 21:37 schrieb has: > Henning Hraban Ramm wrote: >> I struggled a lot with paths containing non-ASCII characters. > Hmmm. Is this with the 0.18.1 release? Do you get the same problem > with the current appscript trunk? Sorry - since yesterday it works (with 0.18.1)

Re: [Pythonmac-SIG] suggestions for an appscript FAQ

2008-03-14 Thread Henning Hraban Ramm
Perhaps more FAQs: << 1 >> Why does this work: document = InDesign.make(new=k.document) document.save(to=ComposedFile(path)) but not this: document = InDesign.make(new=k.document).save(to=ComposedFile(path)) << 2 >> Why is Finder.copy not (yet) implemented? Will it soon?

Re: [Pythonmac-SIG] suggestions for an appscript FAQ

2008-03-14 Thread Henning Hraban Ramm
Am 2008-03-14 um 21:06 schrieb Henning Hraban Ramm: > myfile = sys.argv[1] must be: myfile = unicode(sys.argv[1], 'utf-8') Greetlings from Lake Constance! Hraban --- http://www.fiee.net https://www.cacert.org (I'm an assurer) ___

Re: [Pythonmac-SIG] suggestions for an appscript FAQ

2008-03-14 Thread Henning Hraban Ramm
Am 2008-03-13 um 01:47 schrieb has: > As part of the current upgrade of the appscript website, I'm putting > together a list of topics for an appscript FAQ, and wondering if > anyone has any requests or suggestions for topics it should cover? > Both Python/Ruby/ObjC-specific and general topic idea

Re: [Pythonmac-SIG] appscript docs

2008-03-04 Thread Henning Hraban Ramm
Am 2008-03-04 um 02:10 schrieb has: >> Is there any reason why the appscript docs aren't available online? > The Ruby docs have been up awhile, but the Python and ObjC versions > are still to do. As with most OSS projects: lack of time/motivation/ > manpower and/or plain laziness - take your pick.

Re: [Pythonmac-SIG] appscript docs (was: Path conversions)

2008-03-02 Thread Henning Hraban Ramm
Am 2008-02-27 um 21:57 schrieb Ned Deily: > The macfile module of py-appscript was renamed to mactypes. So, with > the lastest versions of py-appscript, you'll need to change > macfile.Alias() to mactypes.Alias(). See the doc files included with > the py-appscript source download: appscript.so

[Pythonmac-SIG] Path conversions

2008-02-27 Thread Henning Hraban Ramm
I guess this is a FAQ, but I couldn't find an answer that fits my needs... Normally you use unicode paths (with os.sep) with python. For appscript you need AppleScript file aliases (or how they're called). Additionally OSX' file system uses decomposed UTF-8, while most applications use compose

Re: [Pythonmac-SIG] Tuples

2008-02-03 Thread Henning Hraban Ramm
Am 2008-02-03 um 16:54 schrieb Grzegorz Laszczyk: > I have a newbie question. > Do you use tuples? If yes, maybe can you explain me where and why. > I know, how to use strings, dictionaries, lists. But tulpes? Python is > my first language, where I found this. You can use tuples, where 1. they're

Re: [Pythonmac-SIG] Pystone numbers for different Macs...

2008-01-20 Thread Henning Hraban Ramm
Am 2008-01-19 um 21:43 schrieb [EMAIL PROTECTED]: > If you could help by adding some rows to the table, especially for > current > MacBook, MacBook Pro or (in the near future, MacBook Air) models, I'd > appreciate it. I guess it doesn't really matter, but my trusty old steam powered G4/400 on

Re: [Pythonmac-SIG] building a Python app: syntax error

2008-01-10 Thread Henning Hraban Ramm
Am 2008-01-10 um 03:39 schrieb Nolan Schreiber: > following the guidelines at http://svn.pythonmac.org/py2app/py2app/ > trunk/doc/index.html#create-a-setup-py-file, I have setup.py > scripted and saved as a plain text file, seen here: > > from ez_setup import use_setuptools > use_setuptools() >

Re: [Pythonmac-SIG] Opening files with Japanese characters on Tiger

2007-12-07 Thread Henning Hraban Ramm
Am 2007-12-07 um 17:26 schrieb James Kelly: > I ran into an issue recently opening files with Japanese characters on > Tiger. Essentially I am reading from a utf-8 file containing lists > of file > names. Most are completely in English, a few contain Japanese > characters in > the filename.

Re: [Pythonmac-SIG] Problem (and workaround) with XCode and Python projects - non ascii characters in user's name

2007-11-28 Thread Henning Hraban Ramm
Am 2007-11-27 um 13:50 schrieb Juan C. Méndez: > When a new project is created, XCode takes the user name and pre- > fills the headers of the source files. In Python projects, this > creates a problem if the user's name has non ascii characters (like > accents). The problem is that the applic

Re: [Pythonmac-SIG] Discovering file type

2007-11-24 Thread Henning Hraban Ramm
Am 2007-11-22 um 13:12 schrieb boris: (not much) http://api.plone.org/Archetypes/1.3.10/public/MimetypesRegistry/ MimetypesRegistry.mime_types.magic-module.html https://svn.plone.org/svn/archetypes/MimetypesRegistry/trunk/mime_types/ old: http://py.vaults.ca/apyllo.py/514463245.39015704.74680726

Re: [Pythonmac-SIG] Eclipse + SWT + Python

2007-11-19 Thread Henning Hraban Ramm
Am 2007-11-19 um 22:23 schrieb Scott Frankel: > Would Idle be a good choice for IDE if I were to use wx? I've seen > Python plugins for XCode. Would that support debugging? Please look for the several IDE threads in the ML's archive. Short answer: IDLE is dead, and XCode is uncomfortable for P

Re: [Pythonmac-SIG] Eclipse + SWT + Python

2007-11-19 Thread Henning Hraban Ramm
Am 2007-11-19 um 21:56 schrieb Ed Leafe: > On Nov 19, 2007, at 2:50 PM, Scott Frankel wrote: >> Ultimately, I'm looking for a windowing toolkit that uses native >> widgets, one that can provide a high level of visual polish, that can >> be built for multiple OS's and platforms, and that plays nicel

Re: [Pythonmac-SIG] Generic Question

2007-10-04 Thread Henning Hraban Ramm
Am 2007-10-04 um 16:01 schrieb Michele Hjorleifsson: > Anyone aware of a bootcamp for python and or python on mac ? > > If there isn't one, would anyone be interested in attending one ? Boyd Waters just yesterday posted something about Big Nerd Ranch Boot Camp. Greetlings from Lake Constance!

Re: [Pythonmac-SIG] pywps on mac osx

2007-10-02 Thread Henning Hraban Ramm
Am 2007-10-02 um 12:25 schrieb massimo di stefano: > ./wps.py "service=WPS&version=0.4.0&request=getcapabilities" > Traceback (most recent call last): >File "./wps.py", line 74, in ? > raise ServerError(e) >File "/Library/WebServer/CGI-Executables/pywps-2.0.0-rc3/pywps/Wps/ > wpsexcep

Re: [Pythonmac-SIG] py2app: how to include the entire standard library of modules?

2007-09-29 Thread Henning Hraban Ramm
Am 2007-09-29 um 20:54 schrieb Nick Anderson: > I am attempting to build a mac application using py2app. I need to > include all of the standard modules even though the application does > not import them expressly. (The end user will be able to write > scripts, and if his script uses a standard mo

Re: [Pythonmac-SIG] design questions: new hierarchy/tree class?

2007-09-19 Thread Henning Hraban Ramm
Am 2007-09-17 um 19:13 schrieb Nehemiah Dacres: > While i dont know this library verry well, try xml tree. as for > tree like data, most people use nested lists and nested tuples to > display hirarchial (ergo nested) info. google uses xmltree for the > python G-Data client library so it shou

Re: [Pythonmac-SIG] Macports and Django install problems

2007-09-19 Thread Henning Hraban Ramm
Am 2007-09-19 um 00:18 schrieb Brian Ray: > However we need a installer/montitor app for Django development on on > OSX. Does anyone know if one already exists or has been started? I > would consider helping. There is one great installer for django and a lot of other projects, and every develo

Re: [Pythonmac-SIG] design questions: new hierarchy/tree class?

2007-09-19 Thread Henning Hraban Ramm
Am 2007-09-18 um 00:19 schrieb David Worrall: > www.pytables.org Looks good, I'll check this out, thank you! Greetlings from Lake Constance! Hraban --- http://www.fiee.net https://www.cacert.org (I'm an assurer) ___ Pythonmac-SIG maillist - Python

[Pythonmac-SIG] design questions: new hierarchy/tree class?

2007-09-16 Thread Henning Hraban Ramm
Dear gang, I don't want to re-invent the wheel, but I couldn't find what I intend to write... Everyone needs classes for hierarchical data - e.g. for directory trees but also for GUI menu hierarchies or GUI TreeControls - and sometimes you've to generate some GUI tree from a dir tree, which itself

Re: [Pythonmac-SIG] warning: newbie ahead

2007-09-15 Thread Henning Hraban Ramm
Am 2007-09-15 um 21:35 schrieb Paul Archibald: > I am a (Mac) C++/Java programmer looking to expand myself into > Python. I have been working through some tutorials, which has made me > want more, but I am having trouble understanding how to organize and > manage the project files that I write or

Re: [Pythonmac-SIG] Stupid question

2007-05-19 Thread Henning Hraban Ramm
Am 2007-05-19 um 23:46 schrieb Calder Coalson: > This probably has the simplest solution ever, but how do you run a > python file from another python program? I've tried import, but that > doesn't work because the thing has to be completely independent. All > I want to do is split up my file int

Re: [Pythonmac-SIG] StuffIt 10 can corrupt applications packaged with py2app

2007-04-25 Thread Henning Hraban Ramm
2007/4/25, Bob Ippolito <[EMAIL PROTECTED]>: I've had other strange problems with StuffIt's zip support that aren't directly relevant to py2app. For example I have a folder full of a bunch of text files (ActionScript source code) and if I zip it with BOMArchiveHelper, Python, *or* the zip comman

Re: [Pythonmac-SIG] appscript with todos in iCal seams very slow

2006-08-06 Thread Henning Hraban Ramm
Am 2006-08-06 um 16:57 schrieb Marcin Komorowski: > I am trying to generate a python internal structure (a dictionary > of dictionaries) with a copy of all todo data from iCal. I got it > to work using the following code: > > The problem is that this appears to execute painstakingly slowly.

Re: [Pythonmac-SIG] detecting mounted disks

2006-07-16 Thread Henning Hraban Ramm
Am 2006-07-16 um 19:06 schrieb Bob Ippolito: > On Jul 16, 2006, at 4:28 AM, Henning Hraban Ramm wrote: > >> How can I detect if an entry in MacOSX's /Volumes (or more generally: >> any mount point in a UNIX-like OS) is... >> - a local harddisk >> - a network volu

[Pythonmac-SIG] detecting mounted disks

2006-07-16 Thread Henning Hraban Ramm
How can I detect if an entry in MacOSX's /Volumes (or more generally: any mount point in a UNIX-like OS) is... - a local harddisk - a network volume - a CD/DVD-ROM - something other (USB stick...) ? I guess I could get some info from 'mount', but isn't there already a Python function? o.path's

Re: [Pythonmac-SIG] read content from latin-1 file, write it to ut8 file

2006-04-18 Thread Henning Hraban Ramm
Am 2006-04-18 um 10:27 schrieb Piet van Oostrum: >> FH> my problem is, that when I open "newtest.txt" in Textwrangler >> again, >> FH> Textwrangler recognizes the file as "MacRoman" encoded and the >> content is >> FH> garbled. > > Then that is Textwrangler's fault. Interpreting a utf-8 file as

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

2006-04-10 Thread Henning Hraban Ramm
Am 2006-04-10 um 17:06 schrieb Gábor Farkas: > i'd like to write a simple python-mac application, > for which i need to choose a gui toolkit. > > the problem is that i need to be able to enter japanese text, > which means i need support for i don't know how that's called > in osx > (on linux

Re: [Pythonmac-SIG] bin and version

2006-04-09 Thread Henning Hraban Ramm
> 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 directory? Am 2006-04-09 um 02:25 schrieb C

Re: [Pythonmac-SIG] Icons for universal build

2006-03-05 Thread Henning Hraban Ramm
Am 2006-03-05 um 08:04 schrieb Brendan Simons: > For interest's sake, here's the one I tried to do. (I'm not > advocating it, but I put so much work into it ;) > > http://twototango.blogs.com/PythonLauncherBlech.tiff How about some Jack-in-the-box python icon for the Launcher? (i mean: snake wit

Re: [Pythonmac-SIG] Spotlight Importing without .py

2006-01-21 Thread Henning Hraban Ramm
Am 2006-01-21 um 08:01 schrieb Nicholas Matsakis: > > * The saddest part of this story is that /usr/bin/file has been on > Mac OS > X since day one and understands perfectly well what a "a python script > text executable" is. Yet, when the Finder encounters a file > without an > extension or H

Re: [Pythonmac-SIG] Resource forks and HFS-metadata

2006-01-18 Thread Henning Hraban Ramm
Am 2006-01-18 um 02:01 schrieb Dimi Shahbaz: > My program deals with zip transferring archives. I'm curious as to > whether Python (namely the 'zip' and 'zipfile') modules can be made > to be aware of resource forks and HFS-metadata? Or is this a > limitation of the zip format itself? According

Re: [Pythonmac-SIG] Problem with applets on MacPython

2006-01-13 Thread Henning Hraban Ramm
ter and better, but you must start it on the command line, no Mac app yet. (You need wxPython 2.6.x) see http://spe.stani.be/ (On my G4/400 with OSX 10.4, all GUI scripts are very slow, so using SPE with all of its functions, intellisense etc., is not really fun.) Greetlings from Lake Const

Re: [Pythonmac-SIG] PIL for Python 2.4x? (Mac OS 2.4.x)

2006-01-05 Thread Henning Hraban Ramm
Am 2006-01-05 um 17:29 schrieb Schollnick, Benjamin: > But I don't think that PIL will help at this point... I'm > attempting to > add a splashscreen to an cross-platform (Windows / Mac) application... > PIL appears to use Tkinter? > Since my application is using PythonCard / wxPython, I don't