tkinter window get x, y, geometry/coordinates without top of window

前端 未结 1 922
逝去的感伤
逝去的感伤 2021-01-18 07:34

I am using tk in python (3), though I\'d assume that this applies to any language. I am looking to get the current x, y coordinates of a tk window outside of the title bar:<

相关标签:
1条回答
  • 2021-01-18 08:09

    In Tkinter, most configuration functions when used without new value arguments returns the current value(s). Thus root.geometry() (plus a few string parsing) can serve your goal.

    0 讨论(0)
提交回复
热议问题