Automatically assign colors

This commit is contained in:
DarkPhoenix
2019-08-06 13:01:40 +03:00
parent 0257e70c29
commit eb87ba1d89
2 changed files with 21 additions and 9 deletions

View File

@@ -95,9 +95,9 @@ class BaseWrapper:
class SourceWrapper(BaseWrapper):
def __init__(self, item):
def __init__(self, item, color):
super().__init__(item)
self._color = None
self._color = color
@property
def color(self):