Re: [Pythonmac-SIG] Best way to do full-screen mode?

2006-07-22 Thread Michael Hudson
Robert Stephenson <[EMAIL PROTECTED]> writes: > An alternative would be to bring up a borderless full-screen window. > Can that be done easily? I don't know about easily, but it's doable form PyObjC. Hacked out from somewhere else: class PQFullScreenWindow(NSWindow): def makeForView_(cls,

Re: [Pythonmac-SIG] Fwd: more OS X oddities

2006-04-17 Thread Michael Hudson
"Nicholas Cole" <[EMAIL PROTECTED]> writes: > I realised that on OS X it is almost impossible (or at least I can't > find a way) to capture F-key or meta-key presses using the python > curses module. I think this has to do with your terminal emulator more than anything. Try it in an xterm (if you

Re: [Pythonmac-SIG] Framework build of 2.4.2

2005-10-31 Thread Michael Hudson
Ronald Oussoren <[EMAIL PROTECTED]> writes: > BTW. Actually building the beast sucks, the script for building the > documentation index is not very reliable: it crashes while waiting > for the indexer to finish. Luckily I can compensate for this in the > build script. If you have changes you thin

Re: [Pythonmac-SIG] CoreGraphics module for python 2.4.1

2005-09-13 Thread Michael Hudson
"Chris Barker" <[EMAIL PROTECTED]> writes: > Nicholas Riley wrote: > >>>Apple's python seamed to come with the CoreGraphics module. Can I get >>>that same module for python2.4.1 (form undefined.org)? If so, how? >>> >>>OS-X 10.3, if it matters. >> >> Nope, the module is closed-source (most likel

Re: [Pythonmac-SIG] Solid GUI toolkits for Mac?

2005-07-27 Thread Michael Hudson
Jon Rosebaugh <[EMAIL PROTECTED]> writes: > (And if I've got the wrong impression of PyObjC, I'm happy to be > enlightened.) You have the wrong impression of PyObjC. Nearly everything is much less of a pain than toolbars :) (AIUI, I haven't actually implemented a toolbar yet...) Cheers, mwh --

Re: [Pythonmac-SIG] what's the plural of "Emacs"?

2005-06-16 Thread Michael Hudson
Torsten Sadowski <[EMAIL PROTECTED]> writes: > It could be that you just have to change the preferred order of languages > for your system. No, see this page: http://www.emacswiki.org/cgi-bin/emacs-en/CarbonEmacsPackage > I had a problem with Safari rendering some web pages in japanese > until

Re: [Pythonmac-SIG] what's the plural of "Emacs"?

2005-06-16 Thread Michael Hudson
Charles Hartman <[EMAIL PROTECTED]> writes: > I was wondering about the ones in > http://www.apple.com/downloads/macosx/ > I see "Carbon Emacs", "Emacs on Aqua 8.0-rc3", "AquaMacs 0.9.1" . . . I think I use the Carbon Emacs from that selection. It works well, but needs tweaking on a non-Japanese

Re: [Pythonmac-SIG] PyObjC

2005-06-15 Thread Michael Hudson
Jan Erik Moström <[EMAIL PROTECTED]> writes: > Michael Hudson <[EMAIL PROTECTED]> 2005-06-15 10:35: > >>Use PyObjC. This is such an easy question! :) > > I kind of expected that answer ;-) > >>> This might seem like a really stupid question but since I d

Re: [Pythonmac-SIG] PyObjC

2005-06-15 Thread Michael Hudson
Jan Erik Moström <[EMAIL PROTECTED]> writes: > I'm currently looking around for what tools I should use for writing Mac > applications with GUIs. I've previously done this using either Java (no fun > and Swing based programs doesn't look good) or REALbasic, but would like to > use something else.

Re: [Pythonmac-SIG] PyObjC vs "old school" embedding

2005-06-01 Thread Michael Hudson
[EMAIL PROTECTED] writes: > So you're saying that in order for PyObjC to work correctly, there > must be an explicit PyEval_InitThreads call during the embedding > code's initialization? Before 2.4.2 (not released yet) you need to call PyEval_InitThreads before calling PyGILState_Release (bec

Re: [Pythonmac-SIG] binary extension portability

2005-05-29 Thread Michael Hudson
has <[EMAIL PROTECTED]> writes: > Bob wrote: > >>>One more question: am I right in thinking that extension binaries >>>aren't portable between major Python versions, e.g. an .so file >>>built under Python 2.3 won't work on Python 2.4 and vice-versa? >> >>Correct, binary extensions are not portable

Re: [Pythonmac-SIG] Free Python code and Licenses

2005-05-20 Thread Michael Hudson
Kenneth McDonald <[EMAIL PROTECTED]> writes: > I have nothing against the GPL (well, yes I do, I think it makes the > free and commercial software sides enemies, but that's a completely > different topic), but I do think it would be nice if all free Python > software was released under the same li

Re: [Pythonmac-SIG] MacOS 10.4: getxattr() etc. for Python?

2005-05-04 Thread Michael Hudson
Wolfgang Keller <[EMAIL PROTECTED]> writes: > Hello, > >>> > Dumb question: How about integrating it "officially" in the Macpython >>> > distribution, so that all file objects on MacOS X.4 automatically have >>> > an xattr dict? >>> >>> Are these functions in any way standard (eg. does FreeB

Re: [Pythonmac-SIG] MacOS 10.4: getxattr() etc. for Python?

2005-05-04 Thread Michael Hudson
Wolfgang Keller <[EMAIL PROTECTED]> writes: [xattr & co] > Dumb question: How about integrating it "officially" in the Macpython > distribution, so that all file objects on MacOS X.4 automatically have > an xattr dict? Are these functions in any way standard (eg. does FreeBSD have them?). If so,

Re: [Pythonmac-SIG] changging inheritance on the fly?

2005-04-17 Thread Michael Hudson
altern <[EMAIL PROTECTED]> writes: > hi > > probably a bit offtopic since it is nothing mac specific but i didnt > know where to ask. python-list? > is it possible to change the superclass a class inherits from on the fly? You can assign to __bases__. > for example i have this class inheriting

Re: [Pythonmac-SIG] GUI design tools

2005-03-09 Thread Michael Hudson
Mark Phillips <[EMAIL PROTECTED]> writes: > This may be a perennial subject. If this is an oft-repeated request, I > sincerely apologize for wasting bandwidth. It's .. not entirely unfamiliar :) > MacOS X as my primary machine, but historically I have supported old > MacOS and Windows machines.

Re: Fw: [Pythonmac-SIG] Versions, Frameworks, Linking, PantherPythonFix

2005-02-24 Thread Michael Hudson
"Roger Binns" <[EMAIL PROTECTED]> writes: >>> Taking a step back, am I the only person who thinks the Python situation >>> on Mac is absolutely ridiculous, although 10.2 looks better than 10.3. >> As Bob says, you obviously haven't used 10.2... > Correct. I don't want to disparage the improvemen

Re: [Pythonmac-SIG] Versions, Frameworks, Linking, PantherPythonFix

2005-02-23 Thread Michael Hudson
"Roger Binns" <[EMAIL PROTECTED]> writes: > Taking a step back, am I the only person who thinks the Python situation > on Mac is absolutely ridiculous, although 10.2 looks better than 10.3. As Bob says, you obviously haven't used 10.2... > All I want is one up to date version of Python on my sys

Re: [Pythonmac-SIG] Why do I need PantherPythonFix?

2005-02-23 Thread Michael Hudson
"Chris Barker" <[EMAIL PROTECTED]> writes: > Bob Ippolito wrote: >> I also rarely screw with PATH. Using /usr/bin/env is saying "let >> PATH decide". > > right. I am always working across platforms, so I want to specify > which python to use, but not specify where to find it. If you use distuti

Re: [Pythonmac-SIG] cross-platform puzzle

2005-02-22 Thread Michael Hudson
Charles Hartman <[EMAIL PROTECTED]> writes: > So why did my wx.TextCtrl show different double-click behavior on the > two platforms? Though I'm using Python 2.3 on both, my wxPython on Mac > is 2.5.3.1 and on Win it was 2.5.2.8 (dumb!) so I thought that might > be the problem. But no: I upgraded o

Re: [Pythonmac-SIG] Mac User Python Newbies

2005-02-15 Thread Michael Hudson
Bob Ippolito <[EMAIL PROTECTED]> writes: > On Feb 15, 2005, at 5:48, Michael Hudson wrote: > >> I don't know. If I did know, I'd probably have done it. It would >> help if Apple shipped Python with readline support enabled, for >> starters. > > I t

Re: [Pythonmac-SIG] Mac User Python Newbies

2005-02-15 Thread Michael Hudson
"Chris Barker" <[EMAIL PROTECTED]> writes: > That would be nice, but I have even less of an idea how to get money > for hat than I do getting venture capital to start a > business. However, perhaps this is just what one poster proposed: the > PSF could fund a good cross-platform IDE. I don't thin

Re: [Pythonmac-SIG] Mac User Python Newbies

2005-02-15 Thread Michael Hudson
Louis Pecora <[EMAIL PROTECTED]> writes: > Michael Hudson wrote: > >>Well, I think this is a subjective judgement -- a matter of >>familiarity. I "play" with Python all the time. A good start is to >>enhance your interactive experience somewhat. Thre

Re: [Pythonmac-SIG] Mac User Python Newbies

2005-02-13 Thread Michael Hudson
Troy Rollins <[EMAIL PROTECTED]> writes: > On Sun, 13 Feb 2005 16:12:13 +, Michael Hudson <[EMAIL PROTECTED]> wrote: >> Troy Rollins <[EMAIL PROTECTED]> writes: >> >> > I for one, don't care to think of myself in the context of "beg

Re: [Pythonmac-SIG] Mac User Python Newbies

2005-02-13 Thread Michael Hudson
Andrew Meit <[EMAIL PROTECTED]> writes: > On Feb 13, 2005, at 10:59 AM, Troy wrote: > >> I for one, don't care to think of myself in the context of "begger", >> but more so in the context of uninitiated contributor. If developers, >> new to python, have a barrier to entry, they may well walk of to

Re: [Pythonmac-SIG] Mac User Python Newbies

2005-02-13 Thread Michael Hudson
Troy Rollins <[EMAIL PROTECTED]> writes: > I for one, don't care to think of myself in the context of "begger", > but more so in the context of uninitiated contributor. If developers, > new to python, have a barrier to entry, they may well walk of to Ruby, > or Lua... etc. At some point, I'd like

Re: [Pythonmac-SIG] Fink, DarwinPorts vs py2app

2005-02-10 Thread Michael Hudson
Michael Maibaum <[EMAIL PROTECTED]> writes: > As for Python. As soon as there is a framework version of Python > that can be installed via a destroot for packaging, I'll add it to > DarwinPorts. Or if someone can figure out how to hack the current > version to do it... Is there a bug report for t

Re: [Pythonmac-SIG] Apple installed vs. Manual

2005-02-09 Thread Michael Hudson
Charles Hartman <[EMAIL PROTECTED]> writes: > On Feb 9, 2005, at 10:15 AM, Troy Rollins wrote: > >> (Amazon, hurry that shipment of knowledge please!!) > > Speaking of which, I'd really like to hear people's judgment about > what is currently Essential Reading on Python, I mean in print rather > t

Re: [Pythonmac-SIG] fink vs DarwinPorts?

2005-02-07 Thread Michael Hudson
Bob Ippolito <[EMAIL PROTECTED]> writes: > On Feb 7, 2005, at 12:03, Michael Hudson wrote: > >> Bob Ippolito <[EMAIL PROTECTED]> writes: >> >>> Well, even if apt didn't suck, its license does. Apple stays away >>> from GPL software. I'm

Re: [Pythonmac-SIG] fink vs DarwinPorts?

2005-02-07 Thread Michael Hudson
Bob Ippolito <[EMAIL PROTECTED]> writes: > Well, even if apt didn't suck, its license does. Apple stays away > from GPL software. I'm pretty sure that there is exactly zero GPL > code in Mac OS X (not Server) until you install Developer Tools. I think there's a fair bit actually -- gnutar, bash

Re: [Pythonmac-SIG] Reading the resource fork with Python?

2005-02-01 Thread Michael Hudson
Bill Janssen <[EMAIL PROTECTED]> writes: > Given a filename on an HFS volume, what call do I use to see if it has > a resource fork, and if there's anything in it? How do I read that > data? rpath = os.path.join(yourpath, '..namedfork', 'rsrc') os.path.getsize(rpath) > 0 data = open(rpath).read(

Re: [Pythonmac-SIG] How badly is _locale broken?

2004-12-29 Thread Michael Hudson
Bob Ippolito <[EMAIL PROTECTED]> writes: > Alternatively, we could just punt on the issue and say "you need to > use 10.X in order to have a working locale module", where 10.X is the > version that Apple fixes CF. X is obviously greater than 3, but I > don't think it will be much greater. It's b

Re: [Pythonmac-SIG] More testers needed: Fix installer

2004-12-27 Thread Michael Hudson
On 27 Dec 2004, at 16:38, Bob Ippolito wrote: On Dec 27, 2004, at 11:31 AM, Michael Hudson wrote: But 10.3 is Panther, not Jaguar, right? Yes. That was rhetorical :) I'm not being completely thick, am I? The file should surely be called PantherPythonFix.dmg. Cheers

Re: [Pythonmac-SIG] More testers needed: Fix installer

2004-12-27 Thread Michael Hudson
Jack Jansen <[EMAIL PROTECTED]> writes: > On 27-dec-04, at 15:04, Michael Hudson wrote: >> Indeed you can, and it seems to work (tm) on Panther here, but I'm >> *reasonably* sure you have chosen the wrong name for the package :) > > Yeah, consider that a w

Re: [Pythonmac-SIG] More testers needed: Fix installer

2004-12-27 Thread Michael Hudson
Jack Jansen <[EMAIL PROTECTED]> writes: > Ok, Bob, you win:-) > > I've created an installer package that replaces the Makefile after a > simple test that you're actually running 10.3 and have that Makefile > in the right place (i.e. didn't mess too much with your installation). > > If people could

Re: [Pythonmac-SIG] Let's discuss MacPython distributions for january

2004-12-24 Thread Michael Hudson
Bob Ippolito <[EMAIL PROTECTED]> writes: > On Dec 23, 2004, at 6:28 PM, Michael Hudson wrote: > >> Jack Jansen <[EMAIL PROTECTED]> writes: >> >>> Second question: I think the solution to peaceful coexistence is that >>> all Pythons ado

Re: [Pythonmac-SIG] Let's discuss MacPython distributions for january

2004-12-23 Thread Michael Hudson
Jack Jansen <[EMAIL PROTECTED]> writes: > Second question: I think the solution to peaceful coexistence is that > all Pythons adopt the solution sketched in Bob's mail > 012292.html>. That discussion is rather technical, but what it