How to know what event IDs to use in menu?

Hey, that's pretty neat. I had not seen "metamenus" before, but to me
that is an absolutely perfect example of using the expressive power of
Python to let me do something that can be somewhat tedious, in a very
natural and attractive way. Nice work!

···

On Mon, 23 Apr 2007 21:33:19 -0300, "E. A. Tacao" <e.a.tacao@estadao.com.br> wrote:

And as for menubars, if your app is going to require complex menus
and/or menubars, hopefully metamenus
<http://j.domaindlx.com/elements28/wxpython/Metamenus.html&gt; will save
you a lot of time when coding your own menus.

--
Tim Roberts, timr@probo.com
Providenza & Boekelheide, Inc.

I'm having some trouble with menus in AUI.

1. I don't want child windows to automatically insert a "&Windows" menu. For one thing, it's not obvious how to internationalize it. Also, it violates the principle "explicit is better than implicit". This is an ugly design flaw in AUI. Perhaps instead there could be a method to explicitly add this default "&Windows" menu, but I don't care about that. It is invasive to assume that I want it.

2. Crash on exit, if a child window is open and the menu is still present (crash is prevented if I remove the menu). I'm not sure what might cause that.

Thank,
- Ken

Fixed item 1.

Just want to know about how to get rid of the "&Windows" menu.

- Ken

Ken Seehart wrote:

···

I'm having some trouble with menus in AUI.

1. I don't want child windows to automatically insert a "&Windows" menu. For one thing, it's not obvious how to internationalize it. Also, it violates the principle "explicit is better than implicit". This is an ugly design flaw in AUI. Perhaps instead there could be a method to explicitly add this default "&Windows" menu, but I don't care about that. It is invasive to assume that I want it.

2. Crash on exit, if a child window is open and the menu is still present (crash is prevented if I remove the menu). I'm not sure what might cause that.

Thank,
- Ken

---------------------------------------------------------------------
To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwidgets.org
For additional commands, e-mail: wxPython-users-help@lists.wxwidgets.org

Ken Seehart wrote:

Fixed item 1.

Just want to know about how to get rid of the "&Windows" menu.

It's a standard feature of the MDI classes. If you don't want the MDI-like behavior then just use the AUI notebook directly instead.

···

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

Robin Dunn wrote:

Ken
Seehart wrote:

Fixed item 1.

Just want to know about how to get rid of the “&Windows” menu.

It’s a standard feature of the MDI classes. If you don’t want the
MDI-like behavior then just use the AUI notebook directly instead.

Dang. I want everything else in AUI-MDI. At least I think I do…
In particular, I like the ability to drag tabs to create new panes.
Can I do that with a combination of AUI notebook and
AUI_DockingWindowMgr? Any samples out there showing this combination?
One thing I like about AUI-MDI is the absence of a “content” window. I
want all of my windows to be dockable tabs, and I have no window that
would be appropriate for the “content” window. Is this distinction
related to AUI-MDI or is it just a difference between the demos?
I tried deleting the menu item with menu.Remove(), but that sometimes
crashes the app (C exception) when I remove the Window menu. Reminds
me of my previous problem.
Maybe I can live with the Window menu. Is there a way to internationalizeit? I guess I can hack something myself like walking that menu
tree and substituting the strings, but that’s pretty ugly.

  • Ken

Ken Seehart wrote:

Robin Dunn wrote:

Ken Seehart wrote:

Fixed item 1.

Just want to know about how to get rid of the "&Windows" menu.

It's a standard feature of the MDI classes. If you don't want the MDI-like behavior then just use the AUI notebook directly instead.

Dang. I want everything else in AUI-MDI. At least I think I do.... In particular, I like the ability to drag tabs to create new panes. Can I do that with a combination of AUI notebook and AUI_DockingWindowMgr? Any samples out there showing this combination?

AUINotebook handles the docking internally, no need to try and combine it with a manager.

···

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