Madra_smieciarka/classes/Trash.py
2024-03-25 11:21:23 +01:00

49 lines
820 B
Python

typelist = ["paper", "metals_and_plastics", "mixed", "bio_waste", "glass"]
class Trash:
def getWaga(self):
return self.waga
def setWaga(self, waga):
self.waga = waga
return self
def getImage(self):
return self.image
def setImage(self, image):
self.image = image
return self
class Papier(Trash):
def __init__(self):
self.waga = 2
self.image = None
class MetalPlastik(Trash):
def __init__(self):
self.waga = 3
self.image = None
class Mixed(Trash):
def __init__(self):
self.waga = 1
self.image = None
class Bio(Trash):
def __init__(self):
self.waga = 2
self.image = None
class Szklo(Trash):
def __init__(self):
self.waga = 5
self.image = None