Jan*_*ric 2 python tkinter python-3.x
标题说明了一切。如何使用 tkinter 将整个窗口移动到屏幕上的某个位置。这应该是移动根框架。
使用根(或任何顶层)窗口的几何方法。例如:
import tkinter as tk
root = tk.Tk()
root.geometry("+200+400") # places the window at 200,400 on the screen
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
6328 次 |
| 最近记录: |