Setting box: add items UI Scaling, Font Family, UI Language. add the function get_key_by_value to utils.py. and fixed a bit

This commit is contained in:
Sakamoto Shiina
2023-08-28 14:43:34 +09:00
parent 9ec37061e5
commit 84d76ed9a4
2 changed files with 61 additions and 134 deletions

View File

@@ -3,4 +3,10 @@ from PIL.Image import open as Image_open
def getImageFile(file_name):
img = Image_open(os_path.join(os_path.dirname(__file__), "img", file_name))
return img
return img
def get_key_by_value(dictionary, value):
for key, val in dictionary.items():
if val == value:
return key
return None