File tree 1 file changed +5
-3
lines changed
1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change 5
5
from __future__ import annotations
6
6
7
7
import os
8
+ from os .path import abspath
9
+ from typing import Union
8
10
9
11
import pkg_resources
10
12
import pygame
11
13
12
- from pygamepopup .constants import WHITE
14
+ from .constants import WHITE
13
15
14
16
resource_package = __name__
15
17
16
- _default_sprites : dict [str , dict [str , str ]] = {
18
+ _default_sprites : dict [str , Union [ dict [str , str ] , str ]] = {
17
19
"button_background" : {
18
20
"inactive" : pkg_resources .resource_filename (
19
21
resource_package , "/" .join (("images" , "default_box.png" ))
@@ -94,7 +96,7 @@ def set_info_box_background(info_box_background_path: str) -> None:
94
96
Keyword Args:
95
97
info_box_background_path (str): the path to the background sprite to be set.
96
98
"""
97
- _default_sprites ["info_box_background" ] = os . path . abspath (info_box_background_path )
99
+ _default_sprites ["info_box_background" ] = abspath (info_box_background_path )
98
100
99
101
100
102
def set_button_title_font (font : pygame .font .Font ) -> None :
You can’t perform that action at this time.
0 commit comments