File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change 55from __future__ import annotations
66
77import os
8+ from os .path import abspath
9+ from typing import Union
810
911import pkg_resources
1012import pygame
1113
12- from pygamepopup .constants import WHITE
14+ from .constants import WHITE
1315
1416resource_package = __name__
1517
16- _default_sprites : dict [str , dict [str , str ]] = {
18+ _default_sprites : dict [str , Union [ dict [str , str ] , str ]] = {
1719 "button_background" : {
1820 "inactive" : pkg_resources .resource_filename (
1921 resource_package , "/" .join (("images" , "default_box.png" ))
@@ -94,7 +96,7 @@ def set_info_box_background(info_box_background_path: str) -> None:
9496 Keyword Args:
9597 info_box_background_path (str): the path to the background sprite to be set.
9698 """
97- _default_sprites ["info_box_background" ] = os . path . abspath (info_box_background_path )
99+ _default_sprites ["info_box_background" ] = abspath (info_box_background_path )
98100
99101
100102def set_button_title_font (font : pygame .font .Font ) -> None :
You can’t perform that action at this time.
0 commit comments