Re: [Pythonmac-SIG] PyColourChooser don't works

2008-12-01 Thread Robin Dunn
Mariano Di Felice wrote: Ok, but I cannot upgrade my wxpython version, and my object must works... Any idea? Can I download only pycolourchooser module (from where?) and replace my source? http://svn.wxwidgets.org/viewvc/wx/wxPython/branches/WX_2_8_BRANCH/wx/lib/colourchooser/ -- Robin

Re: [Pythonmac-SIG] App distribution with eggs

2008-12-01 Thread Scot Brew
Christopher Barker wrote: > > 2) py2app works OK with eggs, as longs as the eggs are not zipped. You > need to install them with: > Uncompressing the .egg works with py2app and MySQLdb. I had the same issue and was able to get py2app to correctly build the .app with MySQLdb after manually u

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

2008-12-01 Thread Nicholas Riley
On Mon, Dec 01, 2008 at 07:34:37PM +0100, Henning Hraban Ramm wrote: > Ok, but how can I convert those Ints to string? > I get them as Ints also from UTGetOSTypeFromString: > > >>> from LaunchServices import UTGetOSTypeFromString > >>> UTGetOSTypeFromString('public.jpeg') > 1886741100 >>> from La

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 Bill Janssen
Henning Hraban Ramm <[EMAIL PROTECTED]> wrote: > >>> from LaunchServices import UTGetOSTypeFromString > >>> UTGetOSTypeFromString('public.jpeg') > 1886741100 >>> hex(1886741100) '0x7075626c' >>> chr(0x70), chr(0x75), chr(0x62), chr(0x6c) ('p', 'u', 'b', 'l') >>> Doesn't seem all that useful. B

Re: [Pythonmac-SIG] Can't convert simple Python script to bundle with py2app

2008-12-01 Thread Skip Montanaro
> You're building a 2.7? what is that? I thought Python was going from 2.6 to > 3.0. Building from Subversion trunk identifies itself as 2.7a0. There will be a number of other 2.x versions released more-or-less in parallel with 3.y versions. Skip ___

Re: [Pythonmac-SIG] Can't convert simple Python script to bundle with py2app

2008-12-01 Thread Christopher Barker
[EMAIL PROTECTED] wrote: Hmmm... I just built a framework version. I configured like so: ../configure --enable-framework='/Users/skip/Applications' \ --enable-shared --prefix='/Users/skip/local' \ CPPFLAGS='-I/Users/skip/local/include -I/opt/local/include

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/