pathByEnum util added
This commit is contained in:
parent
52bfb06608
commit
bf4d4aaeaa
Before Width: | Height: | Size: 126 KiB After Width: | Height: | Size: 126 KiB |
14
util/PathByEnum.py
Normal file
14
util/PathByEnum.py
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
from random import random
|
||||||
|
|
||||||
|
|
||||||
|
class PathByEnum:
|
||||||
|
def get_random_path(self, item):
|
||||||
|
if item == 1:
|
||||||
|
a = str(random.randint(1, 10))
|
||||||
|
return "item_images/door/drzwi" + a + ".jpg"
|
||||||
|
if item == 2:
|
||||||
|
a = str(random.randint(1, 10))
|
||||||
|
return "item_images/refrigerator/lodowka" + a + ".jpg"
|
||||||
|
if item == 3:
|
||||||
|
a = str(random.randint(1, 10))
|
||||||
|
return "item_images/shelf/polka" + a + ".jpg"
|
Loading…
Reference in New Issue
Block a user