[Pythonmac-SIG] Re: [wxPython-mac] Menus for wxPythonMac
Manoj Plakal
terabaap@yumpee.org
Sun, 27 Jan 2002 00:30:27 -0600
Robin Dunn wrote:
>>Also, when I run the script it does not open as a separate application in
>>OS X. All windows are listed as child windows of the Python application. I'm
>>wondering if these two issues are related. wxPython may not be able to
>>modify Python's menus, and since it does not have its own application, it
>>has no way of showing its own menus. Does this make sense? I admit I'm
>>pretty new to Mac programming, and as such I'm a bit stuck as to what can
>>be done about this problem. Any help would be appreciated!
>>
>
> An approach that I've been thinking of trying is to build a wxMac C++
> application that embeds Python, rather than a standard Python extension
> module. This app can then do the housework necessary to be a well behaved
> Mac app, and then hand off to the embedded Python to run the main wxPython
> script. I havn't had much time lately to do more than think about this,
> perhaps if you've got the time you could try it? Any more knowledgable
> people have comments about this approach?
Has there been any thoughts on this idea
of using a wxMac app which loads Python
and wxPython, rather than running Python
with a script parameter? Would it then
be easier to have a menubar and your own
dock icon (bouncing during launch etc)
so that wxPython apps look like normal
OS X apps? The wxMac demos seem to work
fine (with dock icons and menubars).
If this approach is not feasible
and we stick to running Python.app
with a script, is there a way to
change the dock icon (from Python's icon)
within wxPython?
Manoj