def convert_tkinter_size_to_Qt(size):
    """
    Converts size in characters to size in pixels
    :param size:  size in characters, rows
    :return: size in pixels, pixels
    """
    qtsize = size
    if size[1] is not None and size[1] < DEFAULT_PIXEL_TO_CHARS_CUTOFF:        # change from character based size to pixels (roughly)
        qtsize = size[0]*DEFAULT_PIXELS_TO_CHARS_SCALING[0], size[1]*DEFAULT_PIXELS_TO_CHARS_SCALING[1]
    return qtsize
def convert_tkinter_size_to_Qt ( size ) : qtsize = size if size [ 1 ] is not None and size [ 1 ] < DEFAULT_PIXEL_TO_CHARS_CUTOFF : qtsize = size [ 0 ] * DEFAULT_PIXELS_TO_CHARS_SCALING [ 0 ] , size [ 1 ] * DEFAULT_PIXELS_TO_CHARS_SCALING [ 1 ] return qtsize
Converts size in characters to size in pixels
    :param size:  size in characters, rows
    :return: size in pixels, pixels