winfo pixels

winfo pixels window distance

Returns the number of pixels (as an integer) represented by distance (which is anything understood by Tk_GetScreenMM) in the context of the widget called window. This is affected by tk scaling.