首页 > 解决方案 > 更改 Windows 按钮

问题描述

我目前正在使用 Python 制作应用程序。是否可以将 Windows 按钮更改为 Apple 主题?(仅适用于当前的应用程序)

我有的:

我有什么 - 截图

我想要的是:

我想要什么 - 截图

标签: pythontkinter

解决方案


Normally, the window controls are put there by the display manager, not your program. If you want to do it the hard way, create a bare window with no decoration, then draw your own frame and control buttons. You will have to wire the buttons to the right calls in your code.

To remove the border, you want

window.overrideredirect(1)

The controls will depend on what window manager is running.


推荐阅读