tkinter全屏移动我的辅助显示5像素上的窗口

发布于 2025-02-13 08:16:36 字数 316 浏览 0 评论 0原文

刚刚在我的Tkinter Python应用程序上实现了全屏选项。 效果很好,胸围一些意外的行为。

我的笔记本电脑连接到辅助屏幕。 将我的应用切换到全屏模式时,辅助显示上的窗口移动5像素。当我逃脱全屏模式时,辅助屏幕中的窗口会移回原始位置。

其他人经历了这种行为吗?

谢谢您的回应。 I use a function:

def switch_FullScreen(*args):
    root.attributes("-fullscreen", 1)
    return true

[python3.10]

Just implemented a fullscreen option on my tKinter python app.
Works fine bust some unexpected behaviour.

My laptop is connected to a secondary screen.
When switching my app to fullscreen mode, the window on my secondary display moves 5 pixels. When I escape fullscreen mode, the window in my secondary screen moves back to the original position.

Anyone else experienced this behaviour?

Thank you for responding. I use a function:

def switch_FullScreen(*args):
    root.attributes("-fullscreen", 1)
    return true

[python3.10]

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文