need menubar within a panel...

Hi

I'm building a notebook with two basic tabs:
tabOne should have no menu, and tabTwo needs a basic menubar (file,
edit, about, etc)

My problem is that the menu class seems to be derived from frames and
not from panels...

I'm fairly new to this but couldn't find a solution in the docs.

Any help would be appreciated!

Many thanks
C

Hi,

···

On Jun 10, 4:30 pm, pycharles <charlesleg...@gmail.com> wrote:

Hi

I'm building a notebook with two basic tabs:
tabOne should have no menu, and tabTwo needs a basic menubar (file,
edit, about, etc)

My problem is that the menu class seems to be derived from frames and
not from panels...

I'm fairly new to this but couldn't find a solution in the docs.

Any help would be appreciated!

Many thanks
C

I think you're right. Fortunately, there's the FlatMenu widget, which
is pure python and much more flexible. See the wxPython demo. Here's
how you import it:

import wx.lib.agw.flatmenu as FM

Good luck!

-------------------
Mike Driscoll

Blog: http://blog.pythonlibrary.org

Hi,

Hi

I'm building a notebook with two basic tabs:
tabOne should have no menu, and tabTwo needs a basic menubar (file,
edit, about, etc)

My problem is that the menu class seems to be derived from frames and
not from panels...

I'm fairly new to this but couldn't find a solution in the docs.

Any help would be appreciated!

Many thanks
C

I think you're right.

Correct. The native wx.MenuBar class can only be used in wx.Frame and classes derived from it.

···

On 6/11/10 8:20 AM, Mike Driscoll wrote:

On Jun 10, 4:30 pm, pycharles<charlesleg...@gmail.com> wrote:

Fortunately, there's the FlatMenu widget, which
is pure python and much more flexible. See the wxPython demo. Here's
how you import it:

import wx.lib.agw.flatmenu as FM

--
Robin Dunn
Software Craftsman