Re: How to place menu on the bottom
- From: Fredrik Lundh <fredrik@xxxxxxxxxxxxxx>
- Date: Sat, 30 Aug 2008 12:04:26 +0200
qxyuestc@xxxxxxxx wrote:
self.rootWin.config(menu=menuBar)
I want to place the menu on the bottom (menuFrame.pack(side=BOTTOM,
fill=X)). But it does not work. Why?
menubars that are configured via the window menu option are rendered by the underlying window system.
to create a stand-alone menu bar, create a frame and pack or grid it where you want it, then add Menubutton widgets to it, and attach your pulldown menus to those buttons.
the following wrapper supports both menu styles; look at the "else" clauses in the various "if use_native_menus" statements for code samples:
http://svn.effbot.org/public/stuff/sandbox/tkinter/tkMenu.py
</F>
.
- Follow-Ups:
- Re: How to place menu on the bottom
- From: qxyuestc
- Re: How to place menu on the bottom
- Prev by Date: Re: Interrupt python thread
- Next by Date: Re: __stack_chk_fail_local
- Previous by thread: Re: Which is faster?
- Next by thread: Re: How to place menu on the bottom
- Index(es):