typelist = ["paper", "metals_and_plastics", "mixed", "bio_waste", "glass"] class Trash: def getTreetype(self): return self.treetype def setTreetype(self, treetype): self.treetype = id return self def getTtype(self): return self.ttype def setTtype(self, ttype): self.ttype = ttype return self 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.treetype = 1 self.ttype = "Papier" self.waga = 2 self.image = None class MetalPlastik(Trash): def __init__(self): self.treetype = 2 self.ttype = "MetalPlastik" self.waga = 3 self.image = None class Mixed(Trash): def __init__(self): self.treetype = 4 self.ttype = "Mixed" self.waga = 1 self.image = None class Bio(Trash): def __init__(self): self.treetype = 0 self.ttype = "Bio" self.waga = 2 self.image = None class Szklo(Trash): def __init__(self): self.treetype = 3 self.ttype = "Szklo" self.waga = 5 self.image = None