[Pythonmac-SIG] Dialogs
Schollnick, Benjamin
Benjamin.Schollnick at usa.xerox.com
Wed Aug 6 12:16:24 EDT 2003
Jack,
> There is a hack, but it will only work once: call MacOS.WMAvailable().
> The first time you call this it will try
> GetCurrentProcess/SetFrontProcess,
> but unfortunately for this use case it caches the result in a static
> variable.
>
> Something you could try is send yourself an "activate" AppleEvent.
I admit, this is not a great idea... But it is a work around...
What about a small change to MacOs.WMAvailable ()?
For example...
def MacOs.WMAvailable ( cache = True):
if not cache:
<<Call GetcurrentProcess...etc>>
else:
<<Normal routine>>
In other words, it's behavior would be the same, except we could override
the
cache...
At least, it would work until there was a chance to get the process manager
exported...
And later, when the process manager has been finished, you could add a
depreciated
warning on the false cache call... Or redirect it to the proper process
manager call.
- Benjamin
More information about the Pythonmac-SIG
mailing list