bugfix
This commit is contained in:
parent
8b5a9de5b7
commit
2e976967ea
@ -61,6 +61,8 @@ class BGColorBehavior(object):
|
||||
Color(*self.bgcolor)
|
||||
self.rect = Rectangle(pos=self.pos,
|
||||
size=self.size)
|
||||
else:
|
||||
print('on_bgcolor():self.canvas is None')
|
||||
|
||||
def selected(self):
|
||||
if self.useOwnColor:
|
||||
@ -68,7 +70,6 @@ class BGColorBehavior(object):
|
||||
self.color = self.fgcolor = self.selected_fgcolor
|
||||
self.on_bgcolor()
|
||||
else:
|
||||
print('BGColorBehavior():selected(),useAcestorColor()')
|
||||
self.useAcestorColor(selected=True)
|
||||
|
||||
def unselected(self):
|
||||
@ -77,5 +78,4 @@ class BGColorBehavior(object):
|
||||
self.color = self.fgcolor = self.normal_fgcolor
|
||||
self.on_bgcolor()
|
||||
else:
|
||||
print('BGColorBehavior():unselected(),useAcestorColor()')
|
||||
self.useAcestorColor(selected=False)
|
||||
|
@ -35,5 +35,5 @@ class NewVideo(BGColorBehavior, Video):
|
||||
logger_func[level]('yffpyplayer: {}'.format(msg))
|
||||
|
||||
def audioswitch(self,btn=None):
|
||||
x = self._video._ffplayer.request_channel('audio')
|
||||
x = self._ffplayer.request_channel('audio')
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user