更改 tkinter 窗口边框样式 [英] Change tkinter window border style
本文介绍了更改 tkinter 窗口边框样式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想让我的窗户的框架看起来像旧的 windows 95 风格.现在,当我创建一个窗口时,tkinter 会自动采用我的操作系统(Windows 10)的样式.有没有办法改变这种情况?
I would like to make the frame of my window look like the old windows 95 style. Right now when i create a window tkinter automatically adopts the style of my os (windows 10). Is there a way to change this?
推荐答案
不,没有什么特别可以使窗口边框看起来不同.您唯一的选择是完全移除边框(例如:root.overrideredirect(True)
)并使用画布和/或图像自己绘制边框.
No, there is nothing specifically available to make the window border look different. Your only choice is to remove the border completely (eg: root.overrideredirect(True)
) and draw the border yourself using a canvas and/or images.
这篇关于更改 tkinter 窗口边框样式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文