python - 更改 Windows 按钮
问题描述
我目前正在使用 Python 制作应用程序。是否可以将 Windows 按钮更改为 Apple 主题?(仅适用于当前的应用程序)
我有的:
我想要的是:
解决方案
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.
推荐阅读
- python - 如何在tensorflow中使用skip与tf.data.Dataset api或将批处理设置为0
- c# - 滚动时将数据加载到 FlowControl - C#
- javascript - 一张图表,多系列多数据单数据
- ios - 监听 WKWebView 在 iPhone 上何时缩小
- php - 将 $516.91 转换为 51691
- angular - 将 ngModel 值重置为默认模型?
- twitter-bootstrap - 在引导程序中创建新断点
- java - Ejb Websphere 登录返回空主题
- python - Python tkinter 时钟的日间主题和夜间主题
- ios - 线程 1:致命错误:单击 collectionview 项目时索引超出范围