I was trying to get the movement prototype for my application working when I stumbled across an error, this was with Tkinter's PhotoImage.
At first, I decided that I would use Pathlib but I am starting to believe that is a mistake (I do still need a way for non-windows users to use this application).
## -- Setup -- ##
# Imports and Variables
from pathlib import Path # Increases accessibility on mac and Linux machines
from tkinter import *
window = Tk()
window.title("Project 001 - Pre-Alpha 0.1 (pa0.1)")
Game = Canvas(window, width = 1280, height = 720)
Game.config(bg = "white")
Game.pack()
# Defining Images
PlayerImgPath = Path("Assets\\Char\\Player\\Untitled.png") # Player
PlayerImg = PhotoImage(file = PlayerImgPath)
# Sprites
Player = Game.create_image(20, 250, image = PlayerImg)
When running this I get the following error
file "D:\PythonD\lib\tkinter\__init__.py", line 3495, in __init__
self.tk.call(('image', 'create', imgtype, name,) + options)
_tkinter.TclError: couldn't open "Assets\Char\Player\Untitled.png": no such file or directory