minor fix: error with the finding the path to the arrow.png

This commit is contained in:
Aliaksei Brown 2023-03-11 12:19:18 +01:00
parent d5c3c794d8
commit 0d39238967
3 changed files with 3 additions and 3 deletions

View File

@ -1,4 +1,4 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectRootManager" version="2" project-jdk-name="Python 3.10 (si23traktor)" project-jdk-type="Python SDK" />
<component name="ProjectRootManager" version="2" project-jdk-name="Python 3.8" project-jdk-type="Python SDK" />
</project>

View File

@ -4,7 +4,7 @@
<content url="file://$MODULE_DIR$">
<excludeFolder url="file://$MODULE_DIR$/venv" />
</content>
<orderEntry type="jdk" jdkName="Python 3.10 (si23traktor)" jdkType="Python SDK" />
<orderEntry type="jdk" jdkName="Python 3.8" jdkType="Python SDK" />
<orderEntry type="sourceFolder" forTests="false" />
</component>
</module>

View File

@ -18,7 +18,7 @@ class Lines:
class Tractor:
def __init__(self, parent_screen):
self.parent_screen = parent_screen
self.block = pygame.image.load(r'resources\arrow.png').convert()
self.block = pygame.image.load(r'resources/arrow.png').convert()
self.x = 100
self.y = 100
self.angle = 0