Assigning a wx.menuBar to other windows than a wx.Frame

Hi,

I would like to insert a child window with a menubar as a treeitem in the hypertreelist control written by Andrea Gavana. It seems that I can get away with using a wx.Frame as the child window on MS Windows. But my code does not run on Linux and fails with the error:

Gtk-CRITICAL **: IA__gtk_container_remove: assertion `GTK_IS_CONTAINER (container)’ failed

Gtk-WARNING **: Can’t set a parent on a toplevel widget

I guess the wx.Frame I’m supplying as the treeitem always expects to be toplevel when run on Linux. So my question is if it is possible to place a wx.menuBar in windows other than a wx.Frame?

Many thanks,

Rob