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

Popular posts from this blog

c++ - Difference between pre and post decrement in recursive function argument -

php - Nothing but 'run(); ' when browsing to my local project, how do I fix this? -

php - How can I echo out this array? -