如何将整个窗口移动到屏幕上的某个位置(Tkinter,Python3) [英] How to move the entire window to a place on the screen (Tkinter, Python3)
本文介绍了如何将整个窗口移动到屏幕上的某个位置(Tkinter,Python3)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
标题说明了一切.如何使用 tkinter 将整个窗口移动到屏幕上的某个位置.这应该是移动根框架.
The title says it all. How to move the entire window to a place on the screen using tkinter. This should be moving the root frame.
推荐答案
使用 geometry 方法.例如:
import tkinter as tk
root = tk.Tk()
root.geometry("+200+400") # places the window at 200,400 on the screen
这篇关于如何将整个窗口移动到屏幕上的某个位置(Tkinter,Python3)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文