Re: [Pythonmac-SIG] wxPython book. First example misbehaves on my Mac ?? What's happening?

2006-04-10 Thread Opstad, Dave
Title: Re: [Pythonmac-SIG] wxPython book. First example misbehaves on my Mac ?? What's happening? On 4/10/06 12:11 PM, "Louis Pecora" <[EMAIL PROTECTED]> wrote: > #!/usr/bin/pythonw > > import wx > > class App(wx.App): > def OnInit(self): > frame = wx.Frame(parent=None, title="Ba

Re: [Pythonmac-SIG] ascii <-> unicode <-> cocoa NSString

2006-02-20 Thread Opstad, Dave
Title: Re: [Pythonmac-SIG] ascii <-> unicode <-> cocoa NSString On 2/20/06 1:05 PM, "Keith Ray" <[EMAIL PROTECTED]> wrote: > Help ? You encode from Unicode, and decode to Unicode: >>> 'hi there'.decode('ascii') u'hi there' >>> u'hi there'.encode('ascii') 'hi there' Dave _

Re: [Pythonmac-SIG] Best site to get Numeric and wxPython for new Tiger 10.4 install?

2006-01-11 Thread Opstad, Dave
Title: Re: [Pythonmac-SIG] Best site to get Numeric and wxPython for new Tiger 10.4 install? On 1/11/06 12:09 PM, "Louis Pecora" <[EMAIL PROTECTED]> wrote: > What are the best sites to use to install Numeric and wxPython which > will be used with the stock, Apple-installed Python? http://py

Re: [Pythonmac-SIG] What are "METH_CLASS" and "METH_STATIC"?

2005-01-31 Thread Opstad, Dave
Bob, I fixed setup.py to use the extra link args and switched to CoreServices, as you suggested. That fixed the build issues. I also discovered the main problem I was having: I had forgotten the {NULL, NULL, 0, NULL} entry at the end of my array of PyMethodDefs. I hate copy-and-paste errors... T

[Pythonmac-SIG] What are "METH_CLASS" and "METH_STATIC"?

2005-01-31 Thread Opstad, Dave
I've had good luck building C-language extensions for my Python work, at least up until now. I've got a C file which #includes Carbon.h as well as the canonical Python.h. Attempting to use distutils to build it fails with the error message: ld: build/temp.darwin-7.7.0-Power_Macintosh-2.3/MacUtils/

Re: [Pythonmac-SIG] Read Strings from Resources

2004-12-22 Thread Opstad, Dave
On 12/22/04 1:51 AM, "Jack Jansen" <[EMAIL PROTECTED]> wrote: > On 22 Dec 2004, at 00:22, Opstad, Dave wrote: > >> According to MacTypes.r (in the last Universal Headers revision), the >> Rez format for a 'STR#' resource is as follows: >> >

RE: [Pythonmac-SIG] Read Strings from Resources

2004-12-21 Thread Opstad, Dave
> I've filed a bug report (#1089399), so it'll be fixed, but that's a > long term thing (not before 2.5). In the short term you'll have to > parse the STR# resource yourself. I'm not 100% sure, but I think > they're just a null-byte separated list. If they're something else (a > list of Pascal stri