Re: [Pythonmac-SIG] Solution to some SWIG Install problems on Mac OS X

2005-12-09 Thread Henning.Ramm
>(3) running 'make install' would not work since I had no permission to >write in some directories. I don't fully understand this since >I am the >admin and I was running logged in as such, but to no avail. >Solution: run this as > >sudo make install > >type in the password and you're of

Re: [Pythonmac-SIG] Database (SQL prefered) access on MacPython

2005-12-02 Thread Henning.Ramm
>I asked earlier and ODBC seems to be mostly out on the MacPython >front. What methods do you folks use for accessing an database >(SQL based database prefered) via macpython? Python's Db API, of course. http://www.python.org/peps/pep-0249.html There are a lot of databases out there, and there's

Re: [Pythonmac-SIG] Fwd: Preferred IDE

2005-11-30 Thread Henning.Ramm
>Does anyone know how customizable jedit is .. in Jython maybe? Alle jEdit plugins are written in Java, never used Jython, so I don't know if that would be a way. But at least on my Mac (Tiger) jEdit behaves rather clumsy and tends to crash; there are some GUI problems; some plugins won't load or

Re: [Pythonmac-SIG] Fwd: Preferred IDE

2005-11-29 Thread Henning.Ramm
>> Other than whatever that issue was, though, TextWrangler/BBEdit is >> an *excellent* editor, so be sure to try it out yourself (this >> directed at Jerry and the OP) before dismissing it. I love TextWrangler for its "open in another encoding" feature, but hate it for some inconveniences (bl

Re: [Pythonmac-SIG] Mac Python IDE

2005-11-29 Thread Henning.Ramm
>Does anyone have any suggestions as to the best IDE >for Python on OS X. I've been informed that PythonIDE >has ceased development and that the cold is pretty >old. Would you please read the ongoing thread "Preferred IDE". Greetlings, HR ___ Pythonmac-

Re: [Pythonmac-SIG] Debugger (was: Preferred IDE)

2005-11-29 Thread Henning.Ramm
>A somewhat similar question: is there a good debugger for python? SPE comes with WinPdb, but I never used it. http://www.digitalpeers.com/pythondebugger/ There's also HAP (seems to be Win-only at the moment): https://sourceforge.net/projects/hapdebugger/ Best regards, Henning Hraban Ramm Südku

Re: [Pythonmac-SIG] Preferred IDE

2005-11-28 Thread Henning.Ramm
>I would appreciate any recommendations as to which IDE >to use on OS X. I understand that the MacPythonIDE has >ceased development, and was advised to ask which IDE >people are now using. > >I'm after something fairly lite. A module browser, >basic file management etc. are all that are required, >

Re: [Pythonmac-SIG] Interactive shell

2005-11-23 Thread Henning.Ramm
>than one way, but I think the most common is to create a file called >.profile, and put it in your home directory. Put in this line: > >export PATH=$PATH:/usr/local/bin I'd use '.bashrc' or '.bash_profile', because 'export' is bash syntax -- '.profile' should be read by any shell, and tcsh (e.g

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

2005-11-10 Thread Henning.Ramm
> Thank you. That gives me something closer to a list, but the output is now: > ['939\n', '936\n', '937\n', '885\n', '886\n', '887\n', '171\n', '19\n', ...] > 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) [ in

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

2005-11-10 Thread Henning.Ramm
Title: Nachricht   -Original Message-From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Kirk DurstonSent: Thursday, November 10, 2005 2:00 AMTo: pythonmac-sig@python.orgSubject: [Pythonmac-SIG] inputing multi-digit numbers I’m having a hard time figurin

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

2005-10-24 Thread Henning.Ramm
>> A little googling turned up the following interesting-sounding open- >> source packages: >> >> Gamera project (Python-based OCR) >> http://ldp.library.jhu.edu/projects/gamera/ >> >> gocr >> http://jocr.sourceforge.net/ >> >> ocrad >> http://www.gnu.org/software/ocrad/ocrad.html >> >> I haven't t

Re: [Pythonmac-SIG] packagemanager for Tiger

2005-10-20 Thread Henning.Ramm
> Yes, I've installed SDL and Numeric using Fink, I've installed PyObjC > and trying to install pygame in the Terminal. If you use Fink, you must use Fink for everything; at the moment you've probably several different Python installations of whose none has all required modules. It's normall

Re: [Pythonmac-SIG] Play Quicktime mov

2005-10-10 Thread Henning.Ramm
>> Python by itself cannot. >That's not true at all. Sorry, I shouldn't answer if I have no clue... ;-/ Best regards, Henning Hraban Ramm Südkurier Medienhaus / MediaPro Support/Admin/Development Dept. ___ Pythonmac-SIG maillist - Pythonmac-SIG@python

Re: [Pythonmac-SIG] Play Quicktime mov

2005-10-10 Thread Henning.Ramm
>I'm a newbie. Can anyone clearify if Python can play >Quicktime movies? I kind of heard that it's possible. >Also, does it have a specific control to play the .mov >by time-codes? Many Thanks! Python by itself cannot. But it can access Apple's core libraries to do anything. QuickTime seems a bit

Re: [Pythonmac-SIG] Active Directory authentication on Mac using Python

2005-08-14 Thread Henning.Ramm
> Because of the difficulty in getting python-ldap to build on Mac OS 10.4 Perhaps this helps: http://twistedmatrix.com/users/tv/ldap-intro/ldap-intro.html http://tv.debian.net/software/ldaptor/ (based on twisted, see http://twistedmatrix.com) Best regards, Henning Hraban Ramm Südkurier Medien

Re: [Pythonmac-SIG] Getting Sharing name of the Macintosh via Python?

2005-08-03 Thread Henning.Ramm
>Anyone have any idea on how to get the Machine Name from the Sharing >Preference pane? Is `hostname` what you look for? Best regards, Henning Hraban Ramm Südkurier Medienhaus / MediaPro Support/Admin/Development Dept. ___ Pythonmac-SIG maillist - Pyt

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

2005-07-07 Thread Henning.Ramm
Thank you very much for this overview! I tried several IDEs about a month ago to find the suiting one for my little projects and made partly the same, partly different experiences. Several apps showed the same problem on my german Tiger: The text in interpreter windows is not readable (only top p

Re: [Pythonmac-SIG] Eclipse + PyDev

2005-06-23 Thread Henning.Ramm
>I've tried to use PyDev, but apart from the speed issue, Eclipse's >interface is so sprawling and unintuitive that I haven't even figured >out how to get PyDev started. Perhaps I'm missing something, and if you >find Eclipse a pleasant environment to work in, go for it. I tried Eclipse yesterday

[Pythonmac-SIG] python terminal font problem on Tiger

2005-06-22 Thread Henning.Ramm
Hi there, I made the mistake to upgrade my home Mac to Tiger, and now I must wait for updates of several apps... :-( Anyway, I installed Py2.4, latest wx etc. and changed my PATH to execute Python 2.4 before the system's. That works so far. But I've the same problem with every IDE that I tried

Re: [Pythonmac-SIG] Newbie....(for now)

2005-06-16 Thread Henning.Ramm
>Having not yet used wxPython, I'm not sure how "native" its apps look, >but people seem to like its power. I very much like it on WinXP, and it works (and looks good) on OSX, but some advanced widgets don't work. see www.wxpython.org Best regards, Henning Hraban Ramm Südkurier Medienhaus / Media

Re: [Pythonmac-SIG] app on top

2005-05-31 Thread Henning.Ramm
>This might be an OS question, rather than a Python one, but I am >wondering if there is a way to tell an application to be always on >top (or in front) of other applications running. >I'd like to create a GUI in python and it should stay on top of >other background applications to which the GUI co

RE: [Pythonmac-SIG] ZipFile revision....

2005-04-27 Thread Henning.Ramm
>import bas_init What's this? >print "This file, %s, is bad." % test test is undefined. Best regards, Henning Hraban Ramm Südkurier Medienhaus / MediaPro Support/Admin/Development Dept. ___ Pythonmac-SIG maillist - Pythonmac-SIG@python.or

RE: [Pythonmac-SIG] PyOXIDE wishes?

2005-04-12 Thread Henning.Ramm
>So if you're looking for features/support, now's the time to ask... Some more information on the homepage would be nice, too. Best regards, Henning Hraban Ramm Südkurier Medienhaus / MediaPro Support/Admin/Development Dept. ___ Pythonmac-SIG maillist

RE: [Pythonmac-SIG] IDE recommendation

2005-04-06 Thread Henning.Ramm
Does anyone have experience with jEdit? (www.jedit.org) It's an GPL'ed all purpose editor written in Java that claims to also support Python. I had no time to test it yet besides that it runs on MacOS X, but it's extremely configurable and enhanceable (plugins, macros etc.). Best regards, Henning

RE: [Pythonmac-SIG] XML handler design

2005-04-04 Thread Henning.Ramm
>If you want a cleaner coder, you give might one of the more "pythonic" >XML APIs, like ElementTree or XIST a try. > >ElementTree: http://effbot.org/zone/element-index.htm >XIST: http://www.livinglogic.de/Python/xist/ Thank you for this links - lots of interesting stuff there that I didn't know.

RE: [Pythonmac-SIG] XML handler design

2005-03-24 Thread Henning.Ramm
def getPages(self): return self.pages.getSortedArray() def getPage(self, no): return self.pages[no] >My style is to create/build a data structure in the parser and have a >single get... method that will give me the result. >Your getPage/getPages would be part of t

RE: [Pythonmac-SIG] XML handler design

2005-03-24 Thread Henning.Ramm
>> And where should the "output" go to? >> All examples use print statements in the element handlers. >I'm not certain we are clear. Instead of output statements you >store the data in some instance variable - in your case it appears >self.pages is your instance variable containing the data. Rig

RE: [Pythonmac-SIG] XML handler design

2005-03-24 Thread Henning.Ramm
>> Is there a better syntax for self.__class__.__dict__[handler]? >how about: > handler = getattr(self, str('_start_'+name),None) ># fetch the actual bound method > if handler is not None: > handler( attrs ) That's good, I think. Thank you. >or so

RE: [Pythonmac-SIG] XML handler design

2005-03-24 Thread Henning.Ramm
David Reed wrote: >There's probably a better mailing list with XML parsing experts. I'm >certainly not an expert but have done a little XML parsing. >I've always >followed the pattern of using startElement, characters and endElement >to grab all the data. In the startElement method you set a i

[Pythonmac-SIG] XML handler design

2005-03-24 Thread Henning.Ramm
Hi there! I just wrote a SAX handler for XML files that describe a newspaper issue (list of pages etc.); I'd like to know if I could do it better. def startElement(self, name, attrs): """call an own handler method named _start_Something for a Something element if it exists, to avoid

RE: [Pythonmac-SIG] GUI design tools

2005-03-14 Thread Henning.Ramm
>Based on the statement above it looks as if wxWindows is the more >mature and stable GUI toolkit for cross-platform on OSX. Is it worth >learning WX? or will PyQt catch up? or does anyone even know the >answer to that? I guess you can use PyQt on OSX, I never tried it, but I need to develop also

[Pythonmac-SIG] GUI design tools

2005-03-10 Thread Henning.Ramm
>I have experience with OOP, OOA&D and have about 16 years experience >writing various stand-alone, client/server and n-tier business >applications. I am getting a handle on Python, and I have written a >couple of "faceless" applications with it. As Bob wrote, wx seems to be the best cross-plat

RE: [Pythonmac-SIG] magic file info

2005-02-22 Thread Henning.Ramm
>/usr/bin/magic determines the file type heuristically by parsing >/usr/share/file/magic and then reading a couple bytes out of the given >file. > >This appears to be a direct Python translation of the file command, >with an embedded copy of a magic table: >http://www.demonseed.net/~jp/code/magi

[Pythonmac-SIG] magic file info

2005-02-21 Thread Henning.Ramm
I'm looking for a way to retrieve a file's type - not (only) Mac type/creator, but like what the shell command 'file' returns. Best regards, Henning Hraban Ramm Südkurier Medienhaus / MediaPro Support/Admin/Development Dept. ___ Pythonmac-SIG maillist