added warning image to resources and utils function to load it

This commit is contained in:
Jakub Trllo 2022-01-26 11:18:22 +01:00
parent 716bd5b492
commit 6a03efa7e6
8 changed files with 36 additions and 53 deletions

View file

@ -14,6 +14,15 @@ def get_resource(*args):
return os.path.normpath(os.path.join(RESOURCES_DIR, *args))
def get_image_path(*args):
"""Helper function to get images.
Args:
*<str>: Filepath part items.
"""
return get_resource("images", *args)
def get_liberation_font_path(bold=False, italic=False):
font_name = "LiberationSans"
suffix = ""