Re: [Pythonmac-SIG] Weird Carbon: gestalt: wxPython issue/bug

2010-02-05 Thread has
Christopher Barker wrote: > Peter Hanson, on the wxPython list, seems to have identified a bug in the > gestalt module, that may be a Carbon issue. It's a bit of an unusual case: it > freezes up wxPython, when wx is called from other than the main thread. Robin > Dunn suspects that it's a Carbo

Re: [Pythonmac-SIG] Weird Carbon: gestalt: wxPython issue/bug

2010-02-05 Thread Ronald Oussoren
On Friday, February 05, 2010, at 01:01PM, "has" wrote: >Christopher Barker wrote: > >> Peter Hanson, on the wxPython list, seems to have identified a bug in the >> gestalt module, that may be a Carbon issue. It's a bit of an unusual case: >> it freezes up wxPython, when wx is called from other

Re: [Pythonmac-SIG] Weird Carbon: gestalt: wxPython issue/bug

2010-02-05 Thread has
On Feb 5, 2010, at 12:24 PM, Ronald Oussoren wrote: >> Is wx/Mac not already built upon Carbon/Cocoa APIs? Cocoa's GUI APIs >> certainly aren't thread-safe - all calls must go through the main thread - >> and I doubt Carbon's GUI APIs are any different. [...] > > That's what I thought as well,

Re: [Pythonmac-SIG] Weird Carbon: gestalt: wxPython issue/bug

2010-02-05 Thread Christopher Barker
has wrote: Is wx/Mac not already built upon Carbon/Cocoa APIs? umm -- I'm not sure what that means... anyway: The current wxMac is built on Carbon. The "unstable" version is built on Cocoa. The Cocoa version does not yet have wxPython bindings, and I'm not sure when it will be considered pro

[Pythonmac-SIG] trouble getting window bounds via appscript

2010-02-05 Thread Todd
I'd like to perform some window management via appscript on Mac OSX (10.6.2). This is pretty straightforward using AppleScript (see code#1 below). However, my attempts to perform the same tasks in python appscript have failed: 1. get bounds of display 2. get bounds of foreground process I c

Re: [Pythonmac-SIG] Weird Carbon: gestalt: wxPython issue/bug

2010-02-05 Thread Ronald Oussoren
On 5 feb 2010, at 18:59, Christopher Barker wrote: > Cocoa's GUI APIs certainly aren't thread-safe - all calls must go through the main thread - and I doubt Carbon's GUI APIs are any different. Well, we need to be clear about what thread-safe means. None of the wx back-ends are thre

Re: [Pythonmac-SIG] trouble getting window bounds via appscript

2010-02-05 Thread Ned Deily
In article <4b6c8e7b.8000...@gmail.com>, Todd wrote: > I'd like to perform some window management via appscript on Mac OSX > (10.6.2). > > This is pretty straightforward using AppleScript (see code#1 below). > However, my attempts to perform the same tasks in python appscript have > failed: >

Re: [Pythonmac-SIG] trouble getting window bounds via appscript

2010-02-05 Thread Todd
Ned, Thanks! That unblocked me. I changed my code to enumerate over the applications, and then create an app instance from that. // get the front most app from system events se_app_name = se.processes...name.get() // get the actual application real_app = app(se_app_name) // get the windows fo