[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
Re: [pygame] Menu items in OS X?
You know I could _swear_ I'd seen a python API for talking to Aqua's menu
systems. Take a look on the Apple site forums, or even the Darwin lists maybe?
Apple forums are notoriously unhelpful, but you may well find some developers
who will talk about this, and a lot of apple devel's are pythonauts too.
Jon
Quoting Greg Ewing <greg.ewing@xxxxxxxxxxxxxxxx>:
> Aaron Maupin wrote:
>
> > There may be a Pygame GUI library that fakes menus, but on the Mac menus
> > aren't part of the app window, instead they're separate and at the top
> > of the screen (as far as I remember). Unlike wxPython or other
> > toolkits, I don't think Pygame/SDL has access to system menus.
>
> That's only slightly true. There is only one "system" menu,
> the one with the apple symbol. All the rest, including the
> "application" menu (which is the one traditionally holding
> the Quit command) are under the control of the application.
>
> So pygame *could* provide an API for adding menus and menu
> items -- it just doesn't at the moment.
>
> If you were willing to use a Mac-specific API such as
> Carbon or PyObjC, you could add menu items -- but as I
> said, I'm not sure how you'd go when it came to hooking
> them into pygame's event loop.
>
> --
> Greg
>
--------------------------------------------------------------------
Come and visit Web Prophets Website at http://www.webprophets.net.au