some stuff

This commit is contained in:
langolierz
2017-10-12 02:35:26 +00:00
4 changed files with 21 additions and 11 deletions

View File

@@ -123,20 +123,20 @@ class video_player(object):
def load_content(self):
self.status = 'LOADING'
next_context = data_centre.get_next_context()
logger.info('{} is loading now {}'.format(self.name, next_context['location']))
logger.info('{} is loading now {}'.format(
self.name, next_context['location']))
self.omx.load(next_context['location'], 'after-first-frame',
'--win 0,0,400,400 --no-osd', '')
def reload_content(self):
self.status = 'RELOADING'
if self.omx.omx_loaded and self.is_loaded():
if self.is_loaded():
self.exit()
else:
self.widget.after(50,self.reload_content)
print("trying to reload")
self.load_content()
#layer = layer + 1
def set_to_default(self):