Add color getter-setter for source wrapper

This commit is contained in:
DarkPhoenix
2019-08-05 20:29:41 +03:00
parent 1fbb47d64b
commit f3bd47f347
2 changed files with 13 additions and 2 deletions

View File

@@ -94,7 +94,18 @@ class BaseWrapper:
class SourceWrapper(BaseWrapper):
pass
def __init__(self, item):
super().__init__(item)
self._color = None
@property
def color(self):
return self._color
@color.setter
def color(self, value):
self._color = value
class TargetWrapper(BaseWrapper):

View File

@@ -42,7 +42,7 @@ class LineColor(ViewColumn):
def getToolTip(self, stuff):
if isinstance(stuff, SourceWrapper):
return ''
return 'Change line color'
return ''