Inteligentny_Wozek/packageList.py

17 lines
380 B
Python
Raw Normal View History

2023-05-06 14:54:04 +02:00
class listOfPackages:
list = []
def add(self, item):
self.list.append(item)
def remove(self):
self.list.pop()
def zainicjuj_liste_paczek():
from paczka import Paczka
packageList = listOfPackages()
2023-05-25 19:59:54 +02:00
demo_paczka = Paczka('duzy', 10, any, False, True, False, any, any, any, any, any)
2023-05-06 14:54:04 +02:00
packageList.add(demo_paczka)
return packageList