Suppressing the Window menu?

Is there a way to suppress the Window menu that gets automatically added if you have wx.Frame鈥檚 around in your application? Its extremely undesirable :frowning: Or, if not suppress, get a reference to so I can add stuff to it? Prefer the former, as I鈥檓 doing all the window-management-fu manually (long story), and it all works very nicely-- except that Window menu confuses people and messes stuff up.

Thanks in advance.

鈥揝

Stephen Hansen wrote:

Is there a way to suppress the Window menu that gets automatically added if you have wx.Frame's around in your application? Its extremely undesirable :frowning: Or, if not suppress, get a reference to so I can add stuff to it? Prefer the former, as I'm doing all the window-management-fu manually (long story), and it all works very nicely-- except that Window menu confuses people and messes stuff up.

I assume you are talking about the OSX port? If so then calling the staticmethod wx.MenuBar.SetAutoWindowMenu(False) should do it.

路路路

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!

Awesome, thanks.

鈥揝

路路路

On 2/16/07, Robin Dunn robin@alldunn.com wrote:

Stephen Hansen wrote:

Is there a way to suppress the Window menu that gets automatically added
if you have wx.Frame鈥檚 around in your application?

I assume you are talking about the OSX port? If so then calling the
staticmethod wx.MenuBar.SetAutoWindowMenu(False) should do it.