def absolute_position(widget):
    """
    Get dimension of widget relative to the whole screen

    :param widget: widget whose bounds are to be determined
    :return: absolute dimension tuple ``(x, y, width, height)``
    """
    widget.update_idletasks()
    return widget.winfo_rootx(), widget.winfo_rooty(), widget.winfo_width(), widget.winfo_height()