python - How to get the widget's current x and y coordinates? -
i'm writing game project game "4 in row". make animation picture widget disk falls in column, i've been thinking creating while loop in:
while widgetx != __ , widgety != __
where @ blank parts there values i'll need get.
my question if there's function returns current x
, y
value widget.
winfo_rootx() , winfo_rooty() return coordinates relative screen's upper left corner. winfo_x , winfo_y return coordinates of window relative parent.
Comments
Post a Comment