app/utilities/utilities.py
def center_window(
        screen_width, screen_height,
        tk_window_width, tk_window_height
):
    """Return two values (width & height) for better
        positioning center of the application."""

    avaliable_width = round(screen_width - tk_window_width)
    avaliable_height = round(screen_height - tk_window_height)

    screen_width_center = str(avaliable_width // 2)
    screen_height_top = str(avaliable_height // 4)

    return screen_width_center, screen_height_top
Return two values (width & height) for better
        positioning center of the application.
Return two values (width & height) for better
positioning center of the application.
Return two values ( width & height ) for better positioning center of the application .
def center_window(
        screen_width, screen_height,
        tk_window_width, tk_window_height
):
    avaliable_width = round(screen_width - tk_window_width)
    avaliable_height = round(screen_height - tk_window_height)
    screen_width_center = str(avaliable_width // 2)
    screen_height_top = str(avaliable_height // 4)
    return screen_width_center, screen_height_top
def center_window ( screen_width , screen_height , tk_window_width , tk_window_height ) : avaliable_width = round ( screen_width - tk_window_width ) avaliable_height = round ( screen_height - tk_window_height ) screen_width_center = str ( avaliable_width // 2 ) screen_height_top = str ( avaliable_height // 4 ) return screen_width_center , screen_height_top
Return two values (width & height) for better
positioning center of the application.
Return two values ( width & height ) for better positioning center of the application .
"""Return two values (width & height) for better
        positioning center of the application."""
screen_width
screen_height
tk_window_width
tk_window_height