tkinter - 更改菜单栏位置 [英] tkinter - Change menubar location

查看:66
本文介绍了tkinter - 更改菜单栏位置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个程序,类似于带有教育游戏的桌面环境,我想知道如何将菜单栏放在窗口底部.

I have a program thats like a desktop enviroment with educational games and I was wondering how to put the menubar on the bottom of the window.

提前致谢!

推荐答案

你不能,如果你说的是当你设置根窗口的 menu 属性时你得到的原生菜单栏.

You can't, if you're talking about the native menubar you get when you set the menu attribute of the root window.

您可以使用框架和一个或多个菜单按钮创建自己的菜单栏,其行为有点像菜单栏,并将其放在底部.

You can create your own menubar that behaves a little bit like a menubar by using a frame and one or more menubuttons, and place that at the bottom.

这篇关于tkinter - 更改菜单栏位置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆