This commit is contained in:
yumoqing 2020-10-27 11:29:57 +08:00
parent 8b5a9de5b7
commit 2e976967ea
2 changed files with 3 additions and 3 deletions

View File

@ -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)

View File

@ -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')